Use storage service for call links
This commit is contained in:
parent
50447b7686
commit
5a75246e42
23 changed files with 583 additions and 50 deletions
|
@ -15,14 +15,18 @@ import {
|
|||
type CallHistoryDetails,
|
||||
CallMode,
|
||||
} from '../types/CallDisposition';
|
||||
import { DAY } from './durations';
|
||||
|
||||
export const CALL_LINK_DEFAULT_STATE = {
|
||||
export const CALL_LINK_DEFAULT_STATE: Partial<CallLinkType> = {
|
||||
name: '',
|
||||
restrictions: CallLinkRestrictions.Unknown,
|
||||
revoked: false,
|
||||
expiration: null,
|
||||
storageNeedsSync: false,
|
||||
};
|
||||
|
||||
export const CALL_LINK_DELETED_STORAGE_RECORD_TTL = 30 * DAY;
|
||||
|
||||
export function getKeyFromCallLink(callLink: string): string {
|
||||
const url = new URL(callLink);
|
||||
if (url == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue