Commit e9068f08 authored by Philipp Hörist's avatar Philipp Hörist

DBus: Show correct unread message number

Fixes #8362
parent c2f2ba97
......@@ -901,7 +901,11 @@ def _contacts_as_dbus_structure(self, contacts):
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment