diff --git a/gajim/remote_control.py b/gajim/remote_control.py index 2c2bd997f82ba9908faf61b2887b7ecd0143a720..4882c2422cdff9734b0d64550e5fc492d7928f90 100644 --- a/gajim/remote_control.py +++ b/gajim/remote_control.py @@ -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: