From e27890c868871497ca53598c1583a260aa06f272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 14 May 2018 12:12:04 +0200 Subject: [PATCH] xep_0384: Remove JID import --- plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 4d24032..ed2bb36 100644 --- a/plugin.py +++ b/plugin.py @@ -8,7 +8,6 @@ import logging -from slixmpp.jid import JID import base64 from slixmpp.plugins.xep_0384.stanza import OMEMO_BASE_NS from slixmpp.plugins.xep_0384.stanza import OMEMO_DEVICES_NS, OMEMO_BUNDLE_NS @@ -77,7 +76,7 @@ class XEP_0384(BasePlugin): if msg['pubsub_event']['items']['node'] != OMEMO_DEVICES_NS: return - jid = JID(msg['from']).bare + jid = msg['from'].bare items = msg['pubsub_event']['items'] for item in items: device_ids = [d['id'] for d in item['devices']]