Skip to content
Snippets Groups Projects
Commit 7657d473 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

ignore attention (XEP-224) when messages is delayed

parent 1871a4ab
No related branches found
No related tags found
No related merge requests found
......@@ -1312,7 +1312,10 @@ class DecryptedMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
self.displaymarking = self.seclabel.getTag('displaymarking')
if self.stanza.getTag('attention', namespace=nbxmpp.NS_ATTENTION):
self.attention = True
delayed = self.stanza.getTag('x', namespace=nbxmpp.NS_DELAY) is not\
None
if not delayed:
self.attention = True
self.form_node = self.stanza.getTag('x', namespace=nbxmpp.NS_DATA)
......
......@@ -468,6 +468,9 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
if listener:
self._add_streamhosts_to_query(query, sender, ext_port,
[ext_ip])
else:
self._add_streamhosts_to_query(query, file_props.sender,
ext_port, [ext_ip])
self.connection.send(iq)
cleanup_gupnp()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment