Calls Tab & Group Call Disposition

This commit is contained in:
Jamie Kyle
2023-08-08 17:53:06 -07:00
committed by GitHub
parent 620e85ca01
commit 1eaabb6734
139 changed files with 9182 additions and 2721 deletions

View File

@@ -113,7 +113,6 @@ export enum CallEndedReason {
AcceptedOnAnotherDevice = 'AcceptedOnAnotherDevice',
DeclinedOnAnotherDevice = 'DeclinedOnAnotherDevice',
BusyOnAnotherDevice = 'BusyOnAnotherDevice',
CallerIsNotMultiring = 'CallerIsNotMultiring',
}
// Must be kept in sync with RingRTC's ConnectionState
@@ -166,33 +165,6 @@ export type MediaDeviceSettings = AvailableIODevicesType & {
selectedCamera: string | undefined;
};
type DirectCallHistoryDetailsType = {
callId: string;
callMode: CallMode.Direct;
wasIncoming: boolean;
wasVideoCall: boolean;
wasDeclined: boolean;
acceptedTime?: number;
endedTime?: number;
};
type GroupCallHistoryDetailsType = {
callMode: CallMode.Group;
creatorUuid: string;
eraId: string;
startedTime: number;
};
export type CallHistoryDetailsType =
| DirectCallHistoryDetailsType
| GroupCallHistoryDetailsType;
// Old messages weren't saved with a `callMode`.
export type CallHistoryDetailsFromDiskType =
| (Omit<DirectCallHistoryDetailsType, 'callMode'> &
Partial<Pick<DirectCallHistoryDetailsType, 'callMode'>>)
| GroupCallHistoryDetailsType;
export type ChangeIODevicePayloadType =
| { type: CallingDeviceType.CAMERA; selectedDevice: string }
| { type: CallingDeviceType.MICROPHONE; selectedDevice: AudioDevice }