Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/modules/chatstates.py
    ... ... @@ -166,12 +166,13 @@ class Chatstate:
    166 166
             if setting == 'disabled':
    
    167 167
                 return None
    
    168 168
     
    
    169
    -        # Dont send chatstates to ourself
    
    170
    -        if self._con.get_own_jid().bareMatch(contact.jid):
    
    171
    -            return None
    
    169
    +        if not contact.is_groupchat():
    
    170
    +            # Dont send chatstates to ourself
    
    171
    +            if self._con.get_own_jid().bareMatch(contact.jid):
    
    172
    +                return None
    
    172 173
     
    
    173
    -        if not contact.supports(nbxmpp.NS_CHATSTATES):
    
    174
    -            return None
    
    174
    +            if not contact.supports(nbxmpp.NS_CHATSTATES):
    
    175
    +                return None
    
    175 176
     
    
    176 177
             self.set_active(contact.jid)
    
    177 178
             return 'active'