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