Execute handler only for the correct account

This commit is contained in:
Philipp Hörist 2017-10-08 22:29:15 +02:00
parent 95a984f645
commit 4379c2d014
1 changed files with 3 additions and 0 deletions

View File

@ -268,6 +268,9 @@ class ConnectionVcard:
self._vcard_gc_presence_received)
def _vcard_presence_received(self, obj):
if obj.conn.name != self.name:
return
if obj.avatar_sha is None:
# No Avatar is advertised
return