changeset 3560:413e96caa682

plugin XEP-0054: fix call to JID serialisation method
author Goffi <goffi@goffi.org>
date Thu, 10 Jun 2021 15:43:28 +0200
parents c8d980d694a7
children 4dad134a82c6
files sat/plugins/plugin_xep_0054.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0054.py	Wed Jun 09 18:39:13 2021 +0200
+++ b/sat/plugins/plugin_xep_0054.py	Thu Jun 10 15:43:28 2021 +0200
@@ -439,7 +439,7 @@
         """Check that hash in cache (i.e. computed hash) is the same as given one"""
         # XXX: if they differ, the avatar will be requested on each connection
         # TODO: try to avoid re-requesting avatar in this case
-        computed_hash = client._xep_0054_avatar_hashes[entity.full]
+        computed_hash = client._xep_0054_avatar_hashes[entity.full()]
         if computed_hash != given_hash:
             log.warning(
                 "computed hash differs from given hash for {entity}:\n"