[clients_icons] fix compat with 1.2

This commit is contained in:
Romain DEP.
2019-08-12 05:38:01 +02:00
parent 65f2d22188
commit e1c9663e3e
2 changed files with 3 additions and 3 deletions

View File

@@ -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):