Commit 931fc581 authored by Maxime Buquet's avatar Maxime Buquet

omemo: Update decrypt_message with slixmpp-omemo changes

decrypt_message now takes an Encrypted container and a sender (JID)
instead of a Message object.
Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent ecdd0362
......@@ -86,7 +86,9 @@ class Plugin(E2EEPlugin):
body = None
body = self.core.xmpp['xep_0384'].decrypt_message(message, allow_untrusted)
mfrom = message['from']
encrypted = message['omemo_encrypted']
body = self.core.xmpp['xep_0384'].decrypt_message(encrypted, mfrom, allow_untrusted)
body = body.decode('utf-8')
except (MissingOwnKey,):
# The message is missing our own key, it was not encrypted for
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment