fixed vcard receive from private chat again
This commit is contained in:
parent
f068d47f19
commit
f6a1397040
|
@ -238,6 +238,15 @@ class VcardWindow:
|
|||
self.test_remove_progressbar()
|
||||
|
||||
def _nec_vcard_received(self, obj):
|
||||
if obj.conn.name != self.account:
|
||||
return
|
||||
if obj.resource:
|
||||
# It's a muc occupant vcard
|
||||
if obj.fjid != self.real_jid:
|
||||
return
|
||||
else:
|
||||
if obj.jid != self.contact.jid:
|
||||
return
|
||||
self.set_values(obj.vcard_dict)
|
||||
|
||||
def test_remove_progressbar(self):
|
||||
|
|
Loading…
Reference in New Issue