Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: 0391fb0f by Philipp Hörist at 2019-08-18T20:22:12Z Presence: Add is_nickname_modified property
- - - - -
1 changed file:
- nbxmpp/structs.py
Changes:
===================================== nbxmpp/structs.py ===================================== @@ -588,6 +588,13 @@ class PresenceProperties: self.muc_status_codes is not None and StatusCode.SELF in self.muc_status_codes)
+ @property + def is_nickname_modified(self): + return (self.from_muc and + self.muc_status_codes is not None and + StatusCode.NICKNAME_MODIFIED in self.muc_status_codes and + self.type == PresenceType.AVAILABLE) + @property def is_nickname_changed(self): return (self.from_muc and
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/0391fb0ff1b9c3f8d9a05862096...