Philipp Hörist pushed to branch mute-chat-notifications at gajim / gajim
Commits:
-
e27b71b7
by Philipp Hörist at 2023-04-02T11:43:46+02:00
1 changed file:
Changes:
| ... | ... | @@ -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})'
|