From 78b08bfef25fde591559deb1f9433f7ed2439cba Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 27 Aug 2018 10:48:11 +0200 Subject: [PATCH] fix var declaration --- src/crypto/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/index.js b/src/crypto/index.js index 08012e420..77268cf2c 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -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. let storeConfigPromise = null; if(!existingConfig) { - const storeConfigPromise = this._roomList.setRoomEncryption(roomId, config); + storeConfigPromise = this._roomList.setRoomEncryption(roomId, config); } const AlgClass = algorithms.ENCRYPTION_CLASSES[config.algorithm];