mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
JSON stringify payload, olm_encrypt does not do objects
This commit is contained in:
parent
8676909a26
commit
620fc0d210
@ -107,7 +107,8 @@ export class Encryption {
|
||||
|
||||
_encryptForDevice(type, content, target) {
|
||||
const {session, device} = target;
|
||||
const message = session.encrypt(this._buildPlainTextMessageForDevice(type, content, device));
|
||||
const plaintext = JSON.stringify(this._buildPlainTextMessageForDevice(type, content, device));
|
||||
const message = session.encrypt(plaintext);
|
||||
const encryptedContent = {
|
||||
algorithm: OLM_ALGORITHM,
|
||||
sender_key: this._account.identityKeys.curve25519,
|
||||
|
Loading…
Reference in New Issue
Block a user