plugin XEP-0054: Fix missing await

This commit is contained in:
Goffi 2026-08-24 11:24:25 +02:00
commit 912ffd4e8b

View file

@ -274,7 +274,7 @@ class XEP_0054(object):
@param entity_jid(jid.JID): jid from which we want the VCard
@result(dict): vCard data
"""
entity_jid = self._i.get_identity_jid(client, entity_jid)
entity_jid = await self._i.get_identity_jid(client, entity_jid)
log.debug(f"Asking for {entity_jid}'s VCard")
try:
vcard_elt = await self.get_vcard_element(client, entity_jid)
@ -298,7 +298,7 @@ class XEP_0054(object):
@param entity: entity to get avatar from
@return: avatar metadata, or None if no avatar has been found
"""
entity_jid = self._i.get_identity_jid(client, entity_jid)
entity_jid = await self._i.get_identity_jid(client, entity_jid)
hashes_cache = client._xep_0054_avatar_hashes
vcard = await self.get_card(client, entity_jid)
if vcard is None:
@ -393,7 +393,7 @@ class XEP_0054_handler(XMPPHandler):
@param presence(domish.Element): <presence/> stanza
"""
client = self.parent
entity_jid = self.plugin_parent._i.get_identity_jid(
entity_jid = await self.plugin_parent._i.get_identity_jid(
client, jid.JID(presence["from"])
)