Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

initialize _roomDecryptors properly #315

Merged
merged 1 commit into from
Sep 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion matrix-js-sdk/src/crypto/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,8 @@ Crypto.prototype._getRoomDecryptor = function(roomId, algorithm) {
if (roomId) {
decryptors = this._roomDecryptors.get(roomId);
if (!decryptors) {
this._roomDecryptors[roomId] = decryptors = new Map();
decryptors = new Map();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaaaarghhhh
Thank you !!!

this._roomDecryptors.set(roomId, decryptors);
}

alg = decryptors.get(algorithm);
Expand Down