1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-01 04:43:29 +03:00

fix var declaration

This commit is contained in:
Bruno Windels
2018-08-27 10:48:11 +02:00
parent ae7e90dc2f
commit 78b08bfef2

View File

@@ -648,7 +648,7 @@ Crypto.prototype.setRoomEncryption = async function(roomId, config, inhibitDevic
// to avoid races when calling this method multiple times. Hence keep a hold of the promise. // to avoid races when calling this method multiple times. Hence keep a hold of the promise.
let storeConfigPromise = null; let storeConfigPromise = null;
if(!existingConfig) { if(!existingConfig) {
const storeConfigPromise = this._roomList.setRoomEncryption(roomId, config); storeConfigPromise = this._roomList.setRoomEncryption(roomId, config);
} }
const AlgClass = algorithms.ENCRYPTION_CLASSES[config.algorithm]; const AlgClass = algorithms.ENCRYPTION_CLASSES[config.algorithm];