Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2011-05-11 22:42:44 +0400
committerYann Leboulanger <asterix@lagaule.org>2011-05-11 22:42:44 +0400
commit2265a80e9f333a118527b3a424db08dc45638166 (patch)
tree8de4e5750b6862ccb8680c9eba9ba33161369d69
parent41815f9996a0caabca43545e7a884a4da14ebc26 (diff)
correctly handle roster puches with subscription=remove. Fixes #6829
-rw-r--r--src/gui_interface.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui_interface.py b/src/gui_interface.py
index ad48acfe3..5877a706f 100644
--- a/src/gui_interface.py
+++ b/src/gui_interface.py
@@ -739,6 +739,10 @@ class Interface:
# According to xep 0162, a contact is not an observer anymore when
# we asked for auth, so also remove him if ask changed
old_groups = contacts[0].groups
+ if obj.sub == 'remove':
+ # another of our instance removed a contact. Remove it here too
+ self.roster.remove_contact(obj.jid, account, backend=True)
+ return
if contacts[0].sub != obj.sub or contacts[0].ask != obj.ask\
or old_groups != obj.groups:
# c.get_shown_groups() has changed. Reflect that in