diff sat/plugins/plugin_xep_0054.py @ 3554:184c66256bbc

plugin XEP-0054: fix update call
author Goffi <goffi@goffi.org>
date Wed, 09 Jun 2021 11:35:49 +0200
parents be6d91572633
children 413e96caa682
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0054.py	Wed Jun 09 11:27:22 2021 +0200
+++ b/sat/plugins/plugin_xep_0054.py	Wed Jun 09 11:35:49 2021 +0200
@@ -282,7 +282,7 @@
         try:
             vcard_elt = await self.getVCardElement(client, entity_jid)
         except exceptions.DataError:
-            self._i.update(client, IMPORT_NAME, "avatar", IMPORT_NAME, None, entity_jid)
+            self._i.update(client, IMPORT_NAME, "avatar", None, entity_jid)
         except Exception as e:
             log.warning(_(
                 "Can't get vCard for {entity_jid}: {e}"