diff options
author | lovetox <philipp@hoerist.com> | 2020-04-07 00:04:49 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-04-07 00:04:49 +0300 |
commit | 03915f1efe9bb11623530cc7945090f8b7ea5648 (patch) | |
tree | 11ebd9c3c91f2d81e527a7397ca27e82e775ab14 | |
parent | f3df66ee57b632f9526604ab16e9fc6de7ab8e12 (diff) |
SM: Correctly set delay from attribute
-rw-r--r-- | nbxmpp/smacks.py | 2 |
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()) |