parent
c2f2ba9787
commit
e9068f0853
1 changed files with 5 additions and 1 deletions
|
@ -901,7 +901,11 @@ class GajimRemote(Server):
|
||||||
return contact_dict
|
return contact_dict
|
||||||
|
|
||||||
def get_unread_msgs_number(self):
|
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):
|
def start_chat(self, account):
|
||||||
if not account:
|
if not account:
|
||||||
|
|
Loading…
Add table
Reference in a new issue