Calls Tab & Group Call Disposition
This commit is contained in:
parent
620e85ca01
commit
1eaabb6734
139 changed files with 9182 additions and 2721 deletions
|
@ -12,6 +12,7 @@ import type {
|
|||
ProcessedSent,
|
||||
} from './Types.d';
|
||||
import type { ModifiedContactDetails } from './ContactsParser';
|
||||
import type { CallEventDetails, CallLogEvent } from '../types/CallDisposition';
|
||||
|
||||
export class EmptyEvent extends Event {
|
||||
constructor() {
|
||||
|
@ -404,14 +405,7 @@ export class ViewSyncEvent extends ConfirmableEvent {
|
|||
}
|
||||
|
||||
export type CallEventSyncEventData = Readonly<{
|
||||
timestamp: number;
|
||||
peerUuid: string;
|
||||
callId: string;
|
||||
wasVideoCall: boolean;
|
||||
wasIncoming: boolean;
|
||||
wasDeclined: boolean;
|
||||
acceptedTime: number | undefined;
|
||||
endedTime: number | undefined;
|
||||
callEventDetails: CallEventDetails;
|
||||
receivedAtCounter: number;
|
||||
}>;
|
||||
|
||||
|
@ -424,6 +418,21 @@ export class CallEventSyncEvent extends ConfirmableEvent {
|
|||
}
|
||||
}
|
||||
|
||||
export type CallLogEventSyncEventData = Readonly<{
|
||||
event: CallLogEvent;
|
||||
timestamp: number;
|
||||
receivedAtCounter: number;
|
||||
}>;
|
||||
|
||||
export class CallLogEventSyncEvent extends ConfirmableEvent {
|
||||
constructor(
|
||||
public readonly callLogEvent: CallLogEventSyncEventData,
|
||||
confirm: ConfirmCallback
|
||||
) {
|
||||
super('callLogEventSync', confirm);
|
||||
}
|
||||
}
|
||||
|
||||
export type StoryRecipientUpdateData = Readonly<{
|
||||
destinationUuid: string;
|
||||
storyMessageRecipients: Array<Proto.SyncMessage.Sent.IStoryMessageRecipient>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue