changeset b5efb8187db5 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=b5efb8187db5
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 1ab5f2805c92 -r b5efb8187db5 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
@@ -629,7 +629,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