mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
Fix: Icons collapsing in flex.
Feature: Remember what channel was opened last. Channels: ESC to focus message box / cancel editing.
This commit is contained in:
@@ -24,11 +24,9 @@ interface Props {
|
||||
}
|
||||
|
||||
function Settings({ settings, children }: Props) {
|
||||
console.info(settings.notification);
|
||||
const play = useMemo(() => {
|
||||
const enabled: SoundOptions = defaultsDeep(settings.notification ?? {}, DEFAULT_SOUNDS);
|
||||
return (sound: Sounds) => {
|
||||
console.info('check if we can play sound', enabled[sound]);
|
||||
if (enabled[sound]) {
|
||||
playSound(sound);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user