From 23ac4a5bff43ec10c5bf2e865ef39ae0e6777f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 1 Dec 2018 18:13:07 +0000 Subject: [PATCH] xep_0384: Fix issue when loading session MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Slixmpp was never able to load the session as ids would mismatch, thus unable to decrypt incoming messages. Signed-off-by: Maxime “pep” Buquet --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 3682927..8e8a634 100644 --- a/plugin.py +++ b/plugin.py @@ -279,7 +279,7 @@ class XEP_0384(BasePlugin): payload = b64dec(msg['omemo_encrypted']['payload']['value']) jid = msg['from'].bare - sid = header['sid'] + sid = int(header['sid']) key = header.xml.find("{%s}key[@rid='%s']" % ( OMEMO_BASE_NS, self._device_id))