From 1628fc668c6b693cf7b75b2de123c0be759541ce Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 16 Jun 2020 19:38:54 +0100 Subject: [PATCH] Fix LocalEchoWrapper cache on falsey room ids Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/settings/handlers/LocalEchoWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/handlers/LocalEchoWrapper.js b/src/settings/handlers/LocalEchoWrapper.js index 4cbe4891be..fd0510296a 100644 --- a/src/settings/handlers/LocalEchoWrapper.js +++ b/src/settings/handlers/LocalEchoWrapper.js @@ -39,7 +39,7 @@ export default class LocalEchoWrapper extends SettingsHandler { const cacheRoomId = roomId ? roomId : "UNDEFINED"; // avoid weird keys const bySetting = this._cache[settingName]; if (bySetting && bySetting.hasOwnProperty(cacheRoomId)) { - return bySetting[roomId]; + return bySetting[cacheRoomId]; } return this._handler.getValue(settingName, roomId);