Loading nbxmpp/modules/muc.py +13 −0 Changes for nbxmpp/modules/muc.py: 13 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -97,6 +97,8 @@ class MUC: if muc is None: return properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() properties.muc_nickname = properties.jid.getResource() def _process_muc_user_presence(self, _con, stanza, properties): Loading @@ -104,6 +106,8 @@ class MUC: if muc_user is None: return properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() destroy = muc_user.getTag('destroy') if destroy is not None: Loading Loading @@ -158,6 +162,8 @@ class MUC: def _process_groupchat_message(self, _con, stanza, properties): properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() properties.muc_nickname = properties.jid.getResource() or None muc_user = stanza.getTag('x', namespace=NS_MUC_USER) Loading Loading @@ -185,6 +191,8 @@ class MUC: return properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() if not properties.jid.isBare: return Loading Loading @@ -249,6 +257,8 @@ class MUC: return properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() data = {} Loading Loading @@ -291,6 +301,9 @@ class MUC: return properties.voice_request = VoiceRequest(form=data_form) properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() @call_on_response('_affiliation_received') def get_affiliation(self, jid, affiliation): Loading nbxmpp/structs.py +2 −0 Changes for nbxmpp/structs.py: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading Loading
nbxmpp/modules/muc.py +13 −0 Changes for nbxmpp/modules/muc.py: 13 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -97,6 +97,8 @@ class MUC: if muc is None: return properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() properties.muc_nickname = properties.jid.getResource() def _process_muc_user_presence(self, _con, stanza, properties): Loading @@ -104,6 +106,8 @@ class MUC: if muc_user is None: return properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() destroy = muc_user.getTag('destroy') if destroy is not None: Loading Loading @@ -158,6 +162,8 @@ class MUC: def _process_groupchat_message(self, _con, stanza, properties): properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() properties.muc_nickname = properties.jid.getResource() or None muc_user = stanza.getTag('x', namespace=NS_MUC_USER) Loading Loading @@ -185,6 +191,8 @@ class MUC: return properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() if not properties.jid.isBare: return Loading Loading @@ -249,6 +257,8 @@ class MUC: return properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() data = {} Loading Loading @@ -291,6 +301,9 @@ class MUC: return properties.voice_request = VoiceRequest(form=data_form) properties.from_muc = True properties.muc_jid = properties.jid.copy() properties.muc_jid.setBare() @call_on_response('_affiliation_received') def get_affiliation(self, jid, affiliation): Loading
nbxmpp/structs.py +2 −0 Changes for nbxmpp/structs.py: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading