summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/omemo_plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py
index c59e0219..496e0a12 100644
--- a/plugins/omemo_plugin.py
+++ b/plugins/omemo_plugin.py
@@ -86,7 +86,9 @@ class Plugin(E2EEPlugin):
body = None
try:
- 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