diff --git a/ChangeLog.md b/ChangeLog.md index 4c20482f..b9231a1e 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,4 +1,8 @@ # Changelog: +* **24.11.19** + - Fixed several bugs within the permission editor + - Hide senseless permissions (disableable via options) + * **06.10.19** - Added the possibility to connect within an already running TeaWeb instance - Closing the emoji picker as soon the client clicks into the void diff --git a/shared/js/sound/Sounds.ts b/shared/js/sound/Sounds.ts index d74f51bc..90e7fd74 100644 --- a/shared/js/sound/Sounds.ts +++ b/shared/js/sound/Sounds.ts @@ -191,9 +191,9 @@ namespace sound { speech_volume[Sound[sound_key]] = data[Sound[sound_key]]; } - master_volume = data.master || 1; - overlap_sounds = data.overlap || true; - ignore_muted = data.ignore_muted || true; + master_volume = typeof(data.master) === "number" ? data.master : 1; + overlap_sounds = typeof(data.overlap) === "boolean" ? data.overlap : true; + ignore_muted = typeof(data.ignore_muted) === "boolean" ? data.ignore_muted : false; } register_sound("message.received", "effects/message_received.wav");