Philipp Hörist pushed to branch master at gajim / python-nbxmpp

Commits:

1 changed file:

Changes:

  • nbxmpp/structs.py
    ... ... @@ -588,6 +588,13 @@ class PresenceProperties:
    588 588
                     self.muc_status_codes is not None and
    
    589 589
                     StatusCode.SELF in self.muc_status_codes)
    
    590 590
     
    
    591
    +    @property
    
    592
    +    def is_nickname_modified(self):
    
    593
    +        return (self.from_muc and
    
    594
    +                self.muc_status_codes is not None and
    
    595
    +                StatusCode.NICKNAME_MODIFIED in self.muc_status_codes and
    
    596
    +                self.type == PresenceType.AVAILABLE)
    
    597
    +
    
    591 598
         @property
    
    592 599
         def is_nickname_changed(self):
    
    593 600
             return (self.from_muc and