From ec846f222e1ed294cbd57ada33c61f38d782c7aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 22 Aug 2019 23:38:55 +0200 Subject: omemo: decode decrypted body MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/omemo_plugin.py | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py index 652fb018..e9f2e1b8 100644 --- a/plugins/omemo_plugin.py +++ b/plugins/omemo_plugin.py @@ -63,6 +63,7 @@ class Plugin(E2EEPlugin): body = None try: body = self.core.xmpp['xep_0384'].decrypt_message(message, allow_untrusted) + body = body.decode('utf-8') except (MissingOwnKey,): # The message is missing our own key, it was not encrypted for # us, and we can't decrypt it. -- cgit v1.2.3