when we remove a contact, if we have an opened chat window with him, we add him to not_in_the_roster

This commit is contained in:
Yann Leboulanger 2005-06-10 12:07:22 +00:00
parent b16653d414
commit fb0bb05dfb
1 changed files with 6 additions and 0 deletions

View File

@ -812,6 +812,12 @@ class Roster_window:
for u in self.contacts[account][user.jid]:
self.remove_user(u, account)
del self.contacts[account][u.jid]
if user.jid in self.plugin.windows[account]['chats']:
user1 = User(user.jid, user.name, ['not in the roster'],
'not in the roster', 'not in the roster', 'none', None, '', 0,
user.keyID)
self.contacts[account][user.jid] = [user1]
self.add_user_to_roster(user.jid, account)
def forget_gpg_passphrase(self, keyid):
if self.gpg_passphrase.has_key(keyid):