remove blocked transport from roster when we go offline. see #3718
This commit is contained in:
parent
866d3c27ca
commit
244d222b82
1 changed files with 2 additions and 1 deletions
|
@ -3847,7 +3847,8 @@ class RosterWindow:
|
||||||
gajim.con_types[account] = None
|
gajim.con_types[account] = None
|
||||||
for jid in gajim.contacts.get_jid_list(account):
|
for jid in gajim.contacts.get_jid_list(account):
|
||||||
lcontact = gajim.contacts.get_contacts(account, jid)
|
lcontact = gajim.contacts.get_contacts(account, jid)
|
||||||
for contact in [c for c in lcontact if c.show != 'offline']:
|
for contact in [c for c in lcontact if (c.show != 'offline' or \
|
||||||
|
c.is_transport())]:
|
||||||
self.chg_contact_status(contact, 'offline', '', account)
|
self.chg_contact_status(contact, 'offline', '', account)
|
||||||
self.actions_menu_needs_rebuild = True
|
self.actions_menu_needs_rebuild = True
|
||||||
self.update_status_combobox()
|
self.update_status_combobox()
|
||||||
|
|
Loading…
Add table
Reference in a new issue