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
imprv: Simplify return condition

- - - - -


1 changed file:

- gajim/common/modules/contacts.py


Changes:

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



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e27b71b7011da63f16244f4f9a07c99aeacbb155

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e27b71b7011da63f16244f4f9a07c99aeacbb155
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to