From 3f838e5f3eeb5ed8ed6e632509ae7070692af461 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 11 Jul 2008 06:21:19 +0000 Subject: [PATCH] don't request jabber:iq:last and jabber:iq:version to real jid in a (semi) anonymous room, even if we're moderator and we know the real JID. Fixes #3454 --- src/vcard.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vcard.py b/src/vcard.py index 437010e65..fea82ae61 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -77,7 +77,10 @@ class VcardWindow: # Get real jid if gc_contact: - if gc_contact.jid: + # Don't use real jid if room is (semi-)anonymous + gc_control = gajim.interface.msg_win_mgr.get_gc_control( + gc_contact.room_jid, account) + if gc_contact.jid and not gc_control.is_anonymous: self.real_jid = gc_contact.jid if gc_contact.resource: self.real_jid += '/' + gc_contact.resource