1
0
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:
Richard van der Hoff
2017-01-30 11:40:09 +00:00
parent e71e32122c
commit 656c54ead9

View File

@@ -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({