From 0b6ef3a860998017a2fead1e8e1597408987c951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 23 Aug 2019 22:36:43 +0200 Subject: [PATCH] Use get_info instead of get_items to get account features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 8257115..711d3d4 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -236,8 +236,8 @@ class XEP_0384(BasePlugin): bundle = self._omemo.public_bundle.serialize(self.omemo_backend) jid = self.xmpp.boundjid - items = await self.xmpp['xep_0030'].get_items(jid) - publish_options = PUBLISH_OPTIONS_NODE in items['features'] + disco = await self.xmpp['xep_0030'].get_info(jid.bare) + publish_options = PUBLISH_OPTIONS_NODE in disco['disco_info'].get_features() iq = self.xmpp.Iq(stype='set')