From 3696f3256a9294f10bfa469fd2fb11463bd13d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 18 Nov 2018 23:54:30 +0100 Subject: [PATCH] xep_0384: Fix decryptMessage call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugin.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 769bd87..ee08eed 100644 --- a/plugin.py +++ b/plugin.py @@ -244,11 +244,18 @@ class XEP_0384(BasePlugin): return key = Key(key) - prekey = key['prekey'] in TRUE_VALUES + isPrekeyMessage = key['prekey'] in TRUE_VALUES message = key['value'] iv = header['iv'] - return self._omemo.decrypt(jid, sid, iv, message, payload, prekey) + return self._omemo.decryptMessage( + jid, + sid, + iv, + message, + isPrekeyMessage, + payload, + ) register_plugin(XEP_0384)