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