Commit 674ec48f authored by Philipp Hörist's avatar Philipp Hörist

DBus: Show correct unread message number

Fixes #8362
parent 760645f5
Pipeline #2845 passed with stages
in 3 minutes and 44 seconds
......@@ -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:
......
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