Sync call link call history
This commit is contained in:
parent
ce83195170
commit
2785501f82
26 changed files with 800 additions and 175 deletions
|
@ -14,6 +14,7 @@ import type {
|
|||
} from './Types.d';
|
||||
import type { ContactDetailsWithAvatar } from './ContactsParser';
|
||||
import type { CallEventDetails, CallLogEvent } from '../types/CallDisposition';
|
||||
import type { CallLinkUpdateSyncType } from '../types/CallLink';
|
||||
|
||||
export class EmptyEvent extends Event {
|
||||
constructor() {
|
||||
|
@ -439,6 +440,21 @@ export class CallEventSyncEvent extends ConfirmableEvent {
|
|||
}
|
||||
}
|
||||
|
||||
export type CallLinkUpdateSyncEventData = Readonly<{
|
||||
type: CallLinkUpdateSyncType;
|
||||
rootKey: Uint8Array | undefined;
|
||||
adminKey: Uint8Array | undefined;
|
||||
}>;
|
||||
|
||||
export class CallLinkUpdateSyncEvent extends ConfirmableEvent {
|
||||
constructor(
|
||||
public readonly callLinkUpdate: CallLinkUpdateSyncEventData,
|
||||
confirm: ConfirmCallback
|
||||
) {
|
||||
super('callLinkUpdateSync', confirm);
|
||||
}
|
||||
}
|
||||
|
||||
export type CallLogEventSyncEventData = Readonly<{
|
||||
event: CallLogEvent;
|
||||
timestamp: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue