Commit 0391fb0f authored by Philipp Hörist's avatar Philipp Hörist

Presence: Add is_nickname_modified property

parent 7a12742a
......@@ -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
......
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