Execute handler only for the correct account
This commit is contained in:
parent
95a984f645
commit
4379c2d014
|
@ -268,6 +268,9 @@ class ConnectionVcard:
|
||||||
self._vcard_gc_presence_received)
|
self._vcard_gc_presence_received)
|
||||||
|
|
||||||
def _vcard_presence_received(self, obj):
|
def _vcard_presence_received(self, obj):
|
||||||
|
if obj.conn.name != self.name:
|
||||||
|
return
|
||||||
|
|
||||||
if obj.avatar_sha is None:
|
if obj.avatar_sha is None:
|
||||||
# No Avatar is advertised
|
# No Avatar is advertised
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue