You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Record all e2e room settings in localstorage
I can't quite remember what the logic behind only recording the algorithm in localstorage was, but the upshot is that if you try to set any e2e config options (such as the megolm rotation periods) via the room state, then the state gets rejected and you can't send any events.
This commit is contained in:
@@ -822,10 +822,6 @@ Crypto.prototype.setRoomEncryption = function(roomId, config) {
|
|||||||
throw new Error("Unable to encrypt with " + config.algorithm);
|
throw new Error("Unable to encrypt with " + config.algorithm);
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove spurious keys
|
|
||||||
config = {
|
|
||||||
algorithm: config.algorithm,
|
|
||||||
};
|
|
||||||
this._sessionStore.storeEndToEndRoom(roomId, config);
|
this._sessionStore.storeEndToEndRoom(roomId, config);
|
||||||
|
|
||||||
const alg = new AlgClass({
|
const alg = new AlgClass({
|
||||||
|
Reference in New Issue
Block a user