Commit 6a89fcfb authored by Philipp Hörist's avatar Philipp Hörist

Message Properties: Expose from and to attribute

parent ff8e7bb6
Pipeline #4353 passed with stages
in 26 seconds
......@@ -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)
......
......@@ -495,6 +495,8 @@ class MessageProperties:
self.type = MessageType.NORMAL
self.id = None
self.stanza_id = None
self.from_ = None
self.to = None
self.jid = None
self.subject = None
self.body = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment