Skip to content
Snippets Groups Projects
Commit 3f838e5f authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't request jabber:iq:last and jabber:iq:version to real jid in a (semi)...

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
parent 4db96858
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment