plugin XEP-0054: fix call to JID serialisation method

This commit is contained in:
Goffi 2021-06-10 15:43:28 +02:00
commit 7e622ae5d1

View file

@ -439,7 +439,7 @@ class XEP_0054_handler(XMPPHandler):
"""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"