Skip to content
Snippets Groups Projects
Commit 1254d61c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

remove the (2) beside a user if one of the resource go offline even if we show offline users

parent eefb01e7
No related branches found
No related tags found
No related merge requests found
......@@ -353,7 +353,7 @@ class Roster_window:
"""When a user change his status"""
showOffline = self.plugin.config['showoffline']
model = self.tree.get_model()
if (show == 'offline' or show == 'error') and not showOffline and \
if (show == 'offline' or show == 'error') and \
not self.plugin.queues[account].has_key(user.jid):
if len(self.contacts[account][user.jid]) > 1:
luser = self.contacts[account][user.jid]
......@@ -362,9 +362,11 @@ class Roster_window:
luser.remove(u)
self.redraw_jid(user.jid, account)
break
else:
elif not showOffline:
self.remove_user(user, account)
iters = []
else:
self.redraw_jid(user.jid, account)
else:
if not self.get_user_iter(user.jid, account):
self.add_user_to_roster(user.jid, account)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment