xep_0384: Fix decryptMessage call

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2018-11-18 23:54:30 +01:00
parent d6b9bef2e2
commit 3696f3256a

View file

@ -244,11 +244,18 @@ class XEP_0384(BasePlugin):
return
key = Key(key)
prekey = key['prekey'] in TRUE_VALUES
isPrekeyMessage = key['prekey'] in TRUE_VALUES
message = key['value']
iv = header['iv']
return self._omemo.decrypt(jid, sid, iv, message, payload, prekey)
return self._omemo.decryptMessage(
jid,
sid,
iv,
message,
isPrekeyMessage,
payload,
)
register_plugin(XEP_0384)