Philipp Hörist pushed to branch mute-chat-notifications at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/modules/contacts.py
    ... ... @@ -342,9 +342,7 @@ def is_muted(self) -> bool:
    342 342
                 return False
    
    343 343
     
    
    344 344
             until = datetime.fromisoformat(mute_until)
    
    345
    -        if until > datetime.now(timezone.utc):
    
    346
    -            return True
    
    347
    -        return False
    
    345
    +        return until > datetime.now(timezone.utc)
    
    348 346
     
    
    349 347
         def __repr__(self) -> str:
    
    350 348
             return f'{self.jid} ({self._account})'