Skip to content
Snippets Groups Projects
Commit fb0bb05d authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

when we remove a contact, if we have an opened chat window with him, we add him to not_in_the_roster
parent b16653d4
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment