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


Commits:
8d8c8f22 by lovetox at 2021-12-30T00:16:03+01:00
Const: Adjust PresenceShow weights

As DND means do not disturb, it should win over everything else

- - - - -


1 changed file:

- nbxmpp/const.py


Changes:

=====================================
nbxmpp/const.py
=====================================
@@ -154,11 +154,11 @@ class PresenceShow(Enum):
 
 
 PresenceShow._WEIGHTS = {
+    PresenceShow.DND: 2,
     PresenceShow.CHAT: 1,
     PresenceShow.ONLINE: 0,
     PresenceShow.AWAY: -1,
     PresenceShow.XA: -2,
-    PresenceShow.DND: -3,
 }
 
 



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/8d8c8f22394007bfeb4356a5e03a20616b3a5d30

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/8d8c8f22394007bfeb4356a5e03a20616b3a5d30
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