omemo: don't deconstruct the result from the decrypt call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
2348f3705c
commit
fdf9b74056
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue