xep_0384: Fix decryptMessage call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
d6b9bef2e2
commit
3696f3256a
1 changed files with 9 additions and 2 deletions
11
plugin.py
11
plugin.py
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue