remove blocked transport from roster when we go offline. see #3718

This commit is contained in:
Yann Leboulanger 2008-03-10 15:38:21 +00:00
parent 866d3c27ca
commit 244d222b82
1 changed files with 2 additions and 1 deletions

View File

@ -3847,7 +3847,8 @@ class RosterWindow:
gajim.con_types[account] = None
for jid in gajim.contacts.get_jid_list(account):
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.actions_menu_needs_rebuild = True
self.update_status_combobox()