From 89e6fc6283c5628ad74b5d9bb54eac95418ab08e Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:01:49 -0500 Subject: [PATCH] Remove unnecessary dialog on macOS Sequoia Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> --- ts/state/ducks/calling.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ts/state/ducks/calling.ts b/ts/state/ducks/calling.ts index 1f74f06739..7d1aace420 100644 --- a/ts/state/ducks/calling.ts +++ b/ts/state/ducks/calling.ts @@ -6,6 +6,7 @@ import { hasScreenCapturePermission, openSystemPreferences, } from 'mac-screen-capture-permissions'; +import { isSupported as isNativeMacScreenShareSupported } from '@indutny/mac-screen-share'; import { omit } from 'lodash'; import type { ReadonlyDeep } from 'type-fest'; import { @@ -1316,7 +1317,9 @@ function getPresentingSources(): ThunkAction< // capture that state correctly. const platform = getPlatform(getState()); const needsPermission = - platform === 'darwin' && !hasScreenCapturePermission(); + platform === 'darwin' && + !isNativeMacScreenShareSupported && + !hasScreenCapturePermission(); const capturer = new DesktopCapturer({ i18n,