Philipp Hörist pushed to branch master at gajim / gajim
Commits:
674ec48f by Philipp Hörist at 2018-12-15T22:59:27Z
DBus: Show correct unread message number
Fixes #8362
- - - - -
1 changed file:
- gajim/remote_control.py
Changes:
=====================================
gajim/remote_control.py
=====================================
@@ -901,7 +901,11 @@ class GajimRemote(Server):
return contact_dict
def get_unread_msgs_number(self):
- return str(app.events.get_nb_events())
+ unread = app.events.get_nb_events()
+ for event in app.events.get_all_events(['printed_gc_msg']):
+ if not app.config.notify_for_muc(event.jid):
+ unread -= 1
+ return str(unread)
def start_chat(self, account):
if not account:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/674ec48fa2b23a73e631489072829426dfd4f711
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/674ec48fa2b23a73e631489072829426dfd4f711
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