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