| 1145 | | # remove transport's contacts from treeview |
| 1146 | | jid_list = gajim.contacts.get_jid_list(account) |
| 1147 | | for jid in jid_list: |
| 1148 | | if jid.endswith('@' + contact.jid): |
| 1149 | | c = gajim.contacts.get_first_contact_from_jid(account, jid) |
| 1150 | | gajim.log.debug( |
| 1151 | | 'Removing contact %s due to unregistered transport %s'\ |
| 1152 | | % (jid, contact.jid)) |
| 1153 | | gajim.connections[account].unsubscribe(c.jid) |
| 1154 | | # Transport contacts can't have 2 resources |
| 1155 | | gajim.contacts.remove_jid(account, c.jid) |
| 1156 | | self.remove_contact(c, account) |