mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Settings: Link notification sounds to playSound.
Fix: Restore hooks.ts patch, additionally use numbers.
This commit is contained in:
@@ -1,11 +1,22 @@
|
||||
import { filter } from ".";
|
||||
import { SyncUpdateAction } from "./sync";
|
||||
import { Sounds } from "../../assets/sounds/Audio";
|
||||
import { Theme, ThemeOptions } from "../../context/Theme";
|
||||
|
||||
export type SoundOptions = {
|
||||
[key in Sounds]?: boolean
|
||||
}
|
||||
|
||||
export const DEFAULT_SOUNDS: SoundOptions = {
|
||||
message: true,
|
||||
outbound: false,
|
||||
call_join: true,
|
||||
call_leave: true
|
||||
};
|
||||
|
||||
export interface NotificationOptions {
|
||||
desktopEnabled?: boolean;
|
||||
soundEnabled?: boolean;
|
||||
outgoingSoundEnabled?: boolean;
|
||||
sounds?: SoundOptions
|
||||
}
|
||||
|
||||
export type EmojiPacks = "mutant" | "twemoji" | "noto" | "openmoji";
|
||||
|
||||
Reference in New Issue
Block a user