remove the (2) beside a user if one of the resource go offline even if we show offline users
This commit is contained in:
parent
eefb01e746
commit
1254d61ca9
|
@ -353,7 +353,7 @@ class Roster_window:
|
||||||
"""When a user change his status"""
|
"""When a user change his status"""
|
||||||
showOffline = self.plugin.config['showoffline']
|
showOffline = self.plugin.config['showoffline']
|
||||||
model = self.tree.get_model()
|
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):
|
not self.plugin.queues[account].has_key(user.jid):
|
||||||
if len(self.contacts[account][user.jid]) > 1:
|
if len(self.contacts[account][user.jid]) > 1:
|
||||||
luser = self.contacts[account][user.jid]
|
luser = self.contacts[account][user.jid]
|
||||||
|
@ -362,9 +362,11 @@ class Roster_window:
|
||||||
luser.remove(u)
|
luser.remove(u)
|
||||||
self.redraw_jid(user.jid, account)
|
self.redraw_jid(user.jid, account)
|
||||||
break
|
break
|
||||||
else:
|
elif not showOffline:
|
||||||
self.remove_user(user, account)
|
self.remove_user(user, account)
|
||||||
iters = []
|
iters = []
|
||||||
|
else:
|
||||||
|
self.redraw_jid(user.jid, account)
|
||||||
else:
|
else:
|
||||||
if not self.get_user_iter(user.jid, account):
|
if not self.get_user_iter(user.jid, account):
|
||||||
self.add_user_to_roster(user.jid, account)
|
self.add_user_to_roster(user.jid, account)
|
||||||
|
|
Loading…
Reference in New Issue