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-07-05 23:43:58 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-07-05 23:43:58 +0300
commit1795473b5d699be0b95b511b0b7d03a8ca0ec348 (patch)
tree92423db9f2032266fcfbef687c10dcaee1858114 /nbxmpp/structs.py
parentf39d00575910ec270f1d668e1f80edcc48cc5734 (diff)
Add muc_jid attribute to Message and Presence
Attribute contains a bare JID object if the Message or Presence is from a MUC
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r--nbxmpp/structs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py
index b3d670f..0b3482f 100644
--- a/nbxmpp/structs.py
+++ b/nbxmpp/structs.py
@@ -246,6 +246,7 @@ class MessageProperties:
self.http_auth = None
self.nickname = None
self.from_muc = False
+ self.muc_jid = None
self.muc_nickname = None
self.muc_status_codes = None
self.muc_private_message = False
@@ -374,6 +375,7 @@ class PresenceProperties:
self.error = None
self.avatar_sha = None
self.avatar_state = AvatarState.IGNORE
+ self.muc_jid = None
self.muc_status_codes = None
self.muc_user = None
self.muc_nickname = None