Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(desktop): keep notification sounds during fullscreen apps (#2269)

Hampus0ca0defd246e
diff --git a/fluxer_desktop/src/main/NotificationState.ts b/fluxer_desktop/src/main/NotificationState.ts
index efa5e5409..29fdd773a 100644
--- a/fluxer_desktop/src/main/NotificationState.ts
+++ b/fluxer_desktop/src/main/NotificationState.ts
@@ -16,13 +16,7 @@ const execFileAsync = promisify(execFile);
const POLICY_CACHE_TTL_MS = 1_000;
const COMMAND_TIMEOUT_MS = 1_000;
const MACOS_FOCUS_DB_DIR = path.join(os.homedir(), 'Library', 'DoNotDisturb', 'DB');
-const WINDOWS_SUPPRESSING_STATES = new Set([
- 'not-present',
- 'busy',
- 'running-d3d-full-screen',
- 'presentation-mode',
- 'quiet-time',
-]);
+const WINDOWS_SUPPRESSING_STATES = new Set(['not-present', 'presentation-mode', 'quiet-time']);
export interface NotificationSoundPolicy {
shouldPlaySound: boolean;