Handle stopping screensharing from native UI

This commit is contained in:
Fedor Indutny 2024-10-02 09:29:59 -07:00 committed by GitHub
parent 85cf445924
commit fc7eba772c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 8 deletions

View file

@ -14,6 +14,7 @@ import type {
ActiveCallStateType,
} from '../ducks/calling';
import { getIncomingCall as getIncomingCallHelper } from '../ducks/callingHelpers';
import type { PresentedSource } from '../../types/Calling';
import { CallMode } from '../../types/CallDisposition';
import type { CallLinkType } from '../../types/CallLink';
import { getUserACI } from './user';
@ -166,3 +167,9 @@ export const areAnyCallsActiveOrRinging = createSelector(
getIncomingCall,
(activeCall, incomingCall): boolean => Boolean(activeCall || incomingCall)
);
export const getPresentingSource = createSelector(
getActiveCallState,
(activeCallState): PresentedSource | undefined =>
activeCallState?.presentingSource
);