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')