From 5d774f243e49d72cdfada79f083bfc5bf519be4a Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Wed, 5 Jun 2024 06:26:42 +0300 Subject: [PATCH] Fix exception on account/client key mismatch --- plugin-manifest.json | 4 ++-- plugin.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugin-manifest.json b/plugin-manifest.json index c47380c..78d3ee4 100644 --- a/plugin-manifest.json +++ b/plugin-manifest.json @@ -13,8 +13,8 @@ "win32" ], "requirements": [ - "gajim>=1.8,<1.9" + "gajim>=1.8,<1.10" ], "short_name": "avatarshapeplugin", - "version": "0.0.1" + "version": "0.0.2" } diff --git a/plugin.py b/plugin.py index aa3b9b2..4df9f33 100644 --- a/plugin.py +++ b/plugin.py @@ -187,8 +187,7 @@ class AvatarShapePlugin(GajimPlugin): avatar.generate_default_avatar.cache_clear() avatar.make_workspace_avatar.cache_clear() - for account in app.settings.get_accounts(): - client = app.get_client(account) + for client in app.get_clients(): for contact in client.get_module('Contacts')._contacts.values(): contact.notify('avatar-update') if contact.is_groupchat: