Fix LocalEchoWrapper cache on falsey room ids
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b225324c49
commit
1628fc668c
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ export default class LocalEchoWrapper extends SettingsHandler {
|
||||||
const cacheRoomId = roomId ? roomId : "UNDEFINED"; // avoid weird keys
|
const cacheRoomId = roomId ? roomId : "UNDEFINED"; // avoid weird keys
|
||||||
const bySetting = this._cache[settingName];
|
const bySetting = this._cache[settingName];
|
||||||
if (bySetting && bySetting.hasOwnProperty(cacheRoomId)) {
|
if (bySetting && bySetting.hasOwnProperty(cacheRoomId)) {
|
||||||
return bySetting[roomId];
|
return bySetting[cacheRoomId];
|
||||||
}
|
}
|
||||||
|
|
||||||
return this._handler.getValue(settingName, roomId);
|
return this._handler.getValue(settingName, roomId);
|
||||||
|
|
Loading…
Reference in a new issue