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): ...@@ -901,7 +901,11 @@ def _contacts_as_dbus_structure(self, contacts):
return contact_dict return contact_dict
def get_unread_msgs_number(self): def get_unread_msgs_number(self):
return str( unread =
for event in['printed_gc_msg']):
if not app.config.notify_for_muc(event.jid):
unread -= 1
return str(unread)
def start_chat(self, account): def start_chat(self, account):
if not 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