From f29512e7bf4462bb8f6cbed408e071a695c15a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 22 Jan 2020 22:50:01 +0100 Subject: [PATCH] [client_icons] Fix attribute error --- clients_icons/clients_icons.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py index 49bcf3b..99c4fcf 100644 --- a/clients_icons/clients_icons.py +++ b/clients_icons/clients_icons.py @@ -289,11 +289,11 @@ class ClientsIconsPlugin(GajimPlugin): def _on_caps_update(self, event): # Zeroconf - if event.conn.name == 'Local': + if event.account == 'Local': return contact = self._get_contact_or_gc_contact_for_jid( - event.conn.name, event.fjid) + event.account, event.fjid) if contact is None: return @@ -309,7 +309,7 @@ class ClientsIconsPlugin(GajimPlugin): return roster = app.interface.roster iters = roster._get_contact_iter( - event.jid, event.conn.name, contact, roster.model) + event.jid, event.account, contact, roster.model) iter_ = iters[0] # Highest contact changed