From 71ba2dd714d9a813eec955e832aec680b277a524 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 3 Sep 2020 15:29:35 +0200 Subject: [PATCH] name userId -> ownUserId as elsewhere --- src/matrix/e2ee/olm/Encryption.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/matrix/e2ee/olm/Encryption.js b/src/matrix/e2ee/olm/Encryption.js index 55481bcb..f4731b25 100644 --- a/src/matrix/e2ee/olm/Encryption.js +++ b/src/matrix/e2ee/olm/Encryption.js @@ -31,11 +31,11 @@ function findFirstSessionId(sessionIds) { const OTK_ALGORITHM = "signed_curve25519"; export class Encryption { - constructor({account, olm, olmUtil, userId, storage, now, pickleKey, senderKeyLock}) { + constructor({account, olm, olmUtil, ownUserId, storage, now, pickleKey, senderKeyLock}) { this._account = account; this._olm = olm; this._olmUtil = olmUtil; - this._userId = userId; + this._ownUserId = ownUserId; this._storage = storage; this._now = now; this._pickleKey = pickleKey; @@ -127,7 +127,7 @@ export class Encryption { "ed25519": device.ed25519Key }, recipient: device.userId, - sender: this._userId, + sender: this._ownUserId, content, type }