re-compute big brother when a contact of a metacontact goes offline. fixes #3464
This commit is contained in:
parent
d85e0fdc75
commit
6951442efb
|
@ -519,6 +519,14 @@ class RosterWindow:
|
|||
(not _('Transports') in contact.groups or \
|
||||
gajim.account_is_disconnected(account))) and nb_events == 0:
|
||||
self.remove_contact(contact, account)
|
||||
else:
|
||||
# If it's a metacontact, big brother may have changed, so remove and
|
||||
# re-add
|
||||
model = self.tree.get_model()
|
||||
iters = self.get_contact_iter(contact.jid, account)
|
||||
if iters and model.iter_has_child(iters[0]):
|
||||
self.remove_contact(contact, account)
|
||||
self.add_contact_to_roster(contact.jid, account)
|
||||
else:
|
||||
self.draw_contact(contact.jid, account)
|
||||
|
||||
|
|
Loading…
Reference in New Issue