Call link admin key fix and in-call approve, deny, remove
This commit is contained in:
parent
5df8924197
commit
8ec585d54c
20 changed files with 599 additions and 43 deletions
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { CallLinkStateType, CallLinkType } from '../../types/CallLink';
|
||||
import type { CallingConversationType } from '../../types/Calling';
|
||||
import type { CallLinkType } from '../../types/CallLink';
|
||||
import { CallLinkRestrictions } from '../../types/CallLink';
|
||||
import { MONTH } from '../../util/durations/constants';
|
||||
|
||||
|
@ -26,6 +26,11 @@ export const FAKE_CALL_LINK_WITH_ADMIN_KEY: CallLinkType = {
|
|||
rootKey: 'bpmc-mrgn-hntf-mffd-mndd-xbxk-zmgq-qszg',
|
||||
};
|
||||
|
||||
export function getCallLinkState(callLink: CallLinkType): CallLinkStateType {
|
||||
const { name, restrictions, expiration, revoked } = callLink;
|
||||
return { name, restrictions, expiration, revoked };
|
||||
}
|
||||
|
||||
export function getDefaultCallLinkConversation(
|
||||
callLinkOverrideProps: Partial<CallLinkType> = {}
|
||||
): CallingConversationType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue