Fix exception on account/client key mismatch

This commit is contained in:
Bohdan Horbeshko 2024-06-05 06:26:42 +03:00
parent fe5874746b
commit 5d774f243e
2 changed files with 3 additions and 4 deletions

View file

@ -13,8 +13,8 @@
"win32" "win32"
], ],
"requirements": [ "requirements": [
"gajim>=1.8,<1.9" "gajim>=1.8,<1.10"
], ],
"short_name": "avatarshapeplugin", "short_name": "avatarshapeplugin",
"version": "0.0.1" "version": "0.0.2"
} }

View file

@ -187,8 +187,7 @@ class AvatarShapePlugin(GajimPlugin):
avatar.generate_default_avatar.cache_clear() avatar.generate_default_avatar.cache_clear()
avatar.make_workspace_avatar.cache_clear() avatar.make_workspace_avatar.cache_clear()
for account in app.settings.get_accounts(): for client in app.get_clients():
client = app.get_client(account)
for contact in client.get_module('Contacts')._contacts.values(): for contact in client.get_module('Contacts')._contacts.values():
contact.notify('avatar-update') contact.notify('avatar-update')
if contact.is_groupchat: if contact.is_groupchat: