changeset 53e49988f563 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=53e49988f563
description: correctly clean groupchat_jids when we get an empty vcard.

diffstat:

 src/common/connection_handlers.py |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 8dfb09dc9387 -r 53e49988f563 src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Fri Oct 22 22:22:47 2010 +0200
+++ b/src/common/connection_handlers.py Sun Oct 24 15:32:38 2010 +0200
@@ -602,7 +602,11 @@
                 # We do as if it comes from the fake_jid
                 frm = groupchat_jid
             our_jid = gajim.get_jid_from_account(self.name)
-            if not iq_obj.getTag('vCard') or iq_obj.getType() == 'error':
+            if (not iq_obj.getTag('vCard') and iq_obj.getType() == 'result') 
or\
+            iq_obj.getType() == 'error':
+                if id_ in self.groupchat_jids:
+                    frm = self.groupchat_jids[id_]
+                    del self.groupchat_jids[id_]
                 if frm and frm != our_jid:
                     # Write an empty file
                     self._save_vcard_to_hd(frm, '')
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to