omemo: don't deconstruct the result from the decrypt call

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2018-11-19 01:44:48 +01:00
parent 2348f3705c
commit fdf9b74056

View file

@ -122,5 +122,7 @@ class Plugin(BasePlugin):
self.info('Foo2')
if self.xmpp['xep_0384'].is_encrypted(message):
_always_none, body = self.xmpp['xep_0384'].decrypt_message(message)
body = self.xmpp['xep_0384'].decrypt_message(message)
if body is None: # Message wasn't decrypted
return None
message['body'] = body.decode("utf8")