Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
a62ab333 by lovetox at 2021-02-14T20:13:19+01:00
Presence: Fix is_nickname_changed check
Check if status code is there before checking nickname, otherwise we
get a attribute error when muc_user is None
- - - - -
1 changed file:
- nbxmpp/structs.py
Changes:
=====================================
nbxmpp/structs.py
=====================================
@@ -916,8 +916,8 @@ class PresenceProperties:
def is_nickname_changed(self):
return (self.from_muc and
self.muc_status_codes is not None and
- self.muc_user.nick is not None and
StatusCode.NICKNAME_CHANGE in self.muc_status_codes and
+ self.muc_user.nick is not None and
self.type == PresenceType.UNAVAILABLE)
@property
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/a62ab33329be1f341295ba34c5f258ec7987e217
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/a62ab33329be1f341295ba34c5f258ec7987e217
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits