correctly detect vcard error from groupchat participants (with fake jid)

This commit is contained in:
Yann Leboulanger 2008-04-09 21:30:12 +00:00
parent 7d8540a4a3
commit b04d6aea63
1 changed files with 2 additions and 1 deletions

View File

@ -1080,7 +1080,8 @@ class ConnectionVcard:
if frm and frm != our_jid:
# Write an empty file
self.save_vcard_to_hd(frm, '')
self.dispatch('VCARD', {'jid': frm})
jid, resource = gajim.get_room_and_nick_from_fjid(frm)
self.dispatch('VCARD', {'jid': jid, 'resource': resource})
elif frm == our_jid:
self.dispatch('MYVCARD', {'jid': frm})
elif self.awaiting_answers[id][0] == AGENT_REMOVED: