changeset b679e79466e8 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=b679e79466e8
description: correctly handle roster puches with subscription=remove. Fixes 
#6829

diffstat:

 src/gui_interface.py |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r e22d0498eac1 -r b679e79466e8 src/gui_interface.py
--- a/src/gui_interface.py      Tue Mar 08 21:55:16 2011 +0300
+++ b/src/gui_interface.py      Wed May 11 20:42:44 2011 +0200
@@ -1276,6 +1276,10 @@
             #   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 != sub or contacts[0].ask != ask\
             or old_groups != groups:
                 # c.get_shown_groups() has changed. Reflect that in
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to