From 656c54ead96d8dfb4c4231eee39f13ea52b860b5 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 30 Jan 2017 11:40:09 +0000 Subject: [PATCH] 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. --- src/crypto/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/crypto/index.js b/src/crypto/index.js index b1866156d..a81697c75 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -822,10 +822,6 @@ Crypto.prototype.setRoomEncryption = function(roomId, config) { throw new Error("Unable to encrypt with " + config.algorithm); } - // remove spurious keys - config = { - algorithm: config.algorithm, - }; this._sessionStore.storeEndToEndRoom(roomId, config); const alg = new AlgClass({