diff --git a/src/common/connection_handlers_events.py b/src/common/connection_handlers_events.py
index 78b45a0a81f0b402e56cd483ffbef6f03acff3d8..57eaa9d83990389b7cc619c3bdb9442710a20349 100644
--- a/src/common/connection_handlers_events.py
+++ b/src/common/connection_handlers_events.py
@@ -1311,7 +1311,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)
 
diff --git a/src/common/protocol/bytestream.py b/src/common/protocol/bytestream.py
index 44c5868ab7ab2385ccc614d76c6504416279f738..fbc94d4b52e934327dcdf8ab735bc3897b73fdc5 100644
--- a/src/common/protocol/bytestream.py
+++ b/src/common/protocol/bytestream.py
@@ -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()