diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py index d49475a..104aa7c 100644 --- a/clients_icons/clients_icons.py +++ b/clients_icons/clients_icons.py @@ -66,8 +66,8 @@ class ClientsIconsPlugin(GajimPlugin): caps_cache.capscache).identities if identities: for entry in identities: - if entry['category'] == 'client': - return entry.get('name') + if entry.category == 'client': + return entry.name @staticmethod def is_groupchat(contact): diff --git a/clients_icons/manifest.ini b/clients_icons/manifest.ini index bf17672..a70d8c3 100644 --- a/clients_icons/manifest.ini +++ b/clients_icons/manifest.ini @@ -1,7 +1,7 @@ [info] name: Clients icons short_name: clients_icons -version: 7.6 +version: 7.7 description: Shows client icons in roster and in groupchats. authors: Denis Fomin Artem Klyop