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:
authorPhilipp Hörist <philipp@hoerist.com>2019-10-06 00:50:51 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-10-06 00:52:59 +0300
commit6a89fcfbd803d6a8cba202a5456dec8e7a49d43d (patch)
tree6abeac7163d754a78fc5fb186fcc2c7ed22d1ed8 /nbxmpp/modules
parentff8e7bb66682565ad6d5cc3023612b506502cef9 (diff)
Message Properties: Expose from and to attribute
Diffstat (limited to 'nbxmpp/modules')
-rw-r--r--nbxmpp/modules/message.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nbxmpp/modules/message.py b/nbxmpp/modules/message.py
index 6385868..96c5384 100644
--- a/nbxmpp/modules/message.py
+++ b/nbxmpp/modules/message.py
@@ -55,6 +55,8 @@ class BaseMessage:
else:
properties.jid = stanza.getFrom()
+ properties.from_ = stanza.getFrom()
+ properties.to = stanza.getTo()
properties.id = stanza.getID()
properties.self_message = self._parse_self_message(stanza, properties)