From 408ff3322dadf3f99f2b5ab3c8711062d5a24d1c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 3 Sep 2020 15:30:42 +0200 Subject: [PATCH] content already exists here --- src/matrix/e2ee/olm/Encryption.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/e2ee/olm/Encryption.js b/src/matrix/e2ee/olm/Encryption.js index b5f3449b..680ce154 100644 --- a/src/matrix/e2ee/olm/Encryption.js +++ b/src/matrix/e2ee/olm/Encryption.js @@ -67,8 +67,8 @@ export class Encryption { await this._loadSessions(existingEncryptionTargets); encryptionTargets = encryptionTargets.concat(existingEncryptionTargets); const messages = encryptionTargets.map(target => { - const content = this._encryptForDevice(type, content, target); - return new EncryptedMessage(content, target.device); + const encryptedContent = this._encryptForDevice(type, content, target); + return new EncryptedMessage(encryptedContent, target.device); }); await this._storeSessions(encryptionTargets, timestamp); return messages;