From 62b6037611ead8f6ba9a8589aeec10c2b1e81b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 2 Sep 2019 02:17:19 +0200 Subject: [PATCH] Convert jid to str before passing in decrypt_message 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 1bf170b..3c64855 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -423,7 +423,7 @@ class XEP_0384(BasePlugin): header = encrypted['header'] payload = b64dec(encrypted['payload']['value']) - jid = sender + jid = sender.bare sid = int(header['sid']) key = header.xml.find("{%s}key[@rid='%s']" % (