Synchronous delete call link
This commit is contained in:
parent
e60df56500
commit
42cc5e0013
23 changed files with 443 additions and 135 deletions
|
@ -16,7 +16,7 @@ import type {
|
|||
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 { isCallLinkAdmin, type CallLinkType } from '../../types/CallLink';
|
||||
import { getUserACI } from './user';
|
||||
import { getOwn } from '../../util/getOwn';
|
||||
import type { AciString } from '../../types/ServiceId';
|
||||
|
@ -96,6 +96,11 @@ export const getAllCallLinks = createSelector(
|
|||
(lookup): Array<CallLinkType> => Object.values(lookup)
|
||||
);
|
||||
|
||||
export const getHasAnyAdminCallLinks = createSelector(
|
||||
getAllCallLinks,
|
||||
(callLinks): boolean => callLinks.some(callLink => isCallLinkAdmin(callLink))
|
||||
);
|
||||
|
||||
export type CallSelectorType = (
|
||||
conversationId: string
|
||||
) => CallStateType | undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue