Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-04-07 00:04:49 +0300
committerlovetox <philipp@hoerist.com>2020-04-07 00:04:49 +0300
commit03915f1efe9bb11623530cc7945090f8b7ea5648 (patch)
tree11ebd9c3c91f2d81e527a7397ca27e82e775ab14
parentf3df66ee57b632f9526604ab16e9fc6de7ab8e12 (diff)
SM: Correctly set delay from attribute
-rw-r--r--nbxmpp/smacks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/smacks.py b/nbxmpp/smacks.py
index 983b651..95da2ca 100644
--- a/nbxmpp/smacks.py
+++ b/nbxmpp/smacks.py
@@ -132,7 +132,7 @@ class Smacks:
attrs = {'stamp': timestamp}
if stanza.getType() != 'groupchat':
# Dont leak our JID to Groupchats
- attrs['from'] = stanza.getAttr('from')
+ attrs['from'] = str(self._client.get_bound_jid())
stanza.addChild('delay', namespace=NS_DELAY2, attrs=attrs)
self._uqueue.append(stanza)
self._log.debug('OUT, %s', stanza.getName())