Update CallLogEvent to latest spec

Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-06-26 11:42:31 -05:00 committed by GitHub
parent 20d728b4dd
commit d96b765d00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 366 additions and 142 deletions

View file

@ -28,6 +28,7 @@ import type {
CallHistoryFilter,
CallHistoryGroup,
CallHistoryPagination,
CallLogEventTarget,
} from '../types/CallDisposition';
import type { CallLinkStateType, CallLinkType } from '../types/CallLink';
import type { AttachmentDownloadJobType } from '../types/AttachmentDownload';
@ -666,14 +667,17 @@ export type DataInterface = {
conversationId: string;
}): Promise<MessageType | undefined>;
getAllCallHistory: () => Promise<ReadonlyArray<CallHistoryDetails>>;
clearCallHistory: (
target: CallLogEventTarget
) => Promise<ReadonlyArray<string>>;
markCallHistoryDeleted: (callId: string) => Promise<void>;
clearCallHistory: (beforeTimestamp: number) => Promise<Array<string>>;
cleanupCallHistoryMessages: () => Promise<void>;
getCallHistoryUnreadCount(): Promise<number>;
markCallHistoryRead(callId: string): Promise<void>;
markAllCallHistoryRead(
beforeTimestamp: number
): Promise<ReadonlyArray<string>>;
markAllCallHistoryRead(target: CallLogEventTarget): Promise<void>;
markAllCallHistoryReadInConversation(
target: CallLogEventTarget
): Promise<void>;
getCallHistoryMessageByCallId(options: {
conversationId: string;
callId: string;