From 8a39c16a38fa499630ab0ac351256d29bf8fbbff Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 1 Mar 2021 22:28:34 +0100 Subject: [PATCH] fix name conflict with _sessionInfo in parent class --- src/matrix/e2ee/megolm/decryption/RoomKey.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/matrix/e2ee/megolm/decryption/RoomKey.js b/src/matrix/e2ee/megolm/decryption/RoomKey.js index d7d4699f..e206003a 100644 --- a/src/matrix/e2ee/megolm/decryption/RoomKey.js +++ b/src/matrix/e2ee/megolm/decryption/RoomKey.js @@ -95,20 +95,20 @@ class DeviceMessageRoomKey extends BaseRoomKey { } class BackupRoomKey extends BaseRoomKey { - constructor(roomId, sessionId, sessionInfo) { + constructor(roomId, sessionId, backupInfo) { super(); this._roomId = roomId; this._sessionId = sessionId; - this._sessionInfo = sessionInfo; + this._backupInfo = backupInfo; } get roomId() { return this._roomId; } - get senderKey() { return this._sessionInfo["sender_key"]; } + get senderKey() { return this._backupInfo["sender_key"]; } get sessionId() { return this._sessionId; } - get claimedEd25519Key() { return this._sessionInfo["sender_claimed_keys"]?.["ed25519"]; } + get claimedEd25519Key() { return this._backupInfo["sender_claimed_keys"]?.["ed25519"]; } _loadSessionKey(session) { - const sessionKey = this._sessionInfo["session_key"]; + const sessionKey = this._backupInfo["session_key"]; session.import_session(sessionKey); } }