don't request vcard to full_jid when we know the real jid in MUC. fixes #3723

This commit is contained in:
Yann Leboulanger 2008-02-09 10:08:44 +00:00
parent 4974773895
commit cc6b2dd7a1
1 changed files with 6 additions and 1 deletions

View File

@ -388,7 +388,12 @@ class VcardWindow:
self.fill_status_label()
if self.gc_contact:
gajim.connections[self.account].request_vcard(self.real_jid,
# If we know the real jid, remove the resource from vcard request
if self.gc_contact.jid:
jid = self.gc_contact.jid
else:
jid = self.real_jid
gajim.connections[self.account].request_vcard(jid,
self.gc_contact.get_full_jid())
else:
gajim.connections[self.account].request_vcard(self.contact.jid)