Save group send endorsements

This commit is contained in:
Jamie Kyle 2024-05-20 11:15:39 -07:00 committed by GitHub
parent dea641bae4
commit 4253bed0bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 583 additions and 91 deletions

View file

@ -31,6 +31,7 @@ import type {
} from '../types/CallDisposition';
import type { CallLinkStateType, CallLinkType } from '../types/CallLink';
import type { AttachmentDownloadJobType } from '../types/AttachmentDownload';
import type { GroupSendEndorsementsData } from '../types/GroupSendEndorsements';
export type AdjacentMessagesByConversationOptionsType = Readonly<{
conversationId: string;
@ -526,6 +527,14 @@ export type DataInterface = {
serviceId: ServiceIdString
) => Promise<Array<ConversationType>>;
replaceAllEndorsementsForGroup: (
data: GroupSendEndorsementsData
) => Promise<void>;
deleteAllEndorsementsForGroup: (groupId: string) => Promise<void>;
getGroupSendCombinedEndorsementExpiration: (
groupId: string
) => Promise<number | null>;
getMessageCount: (conversationId?: string) => Promise<number>;
getStoryCount: (conversationId: string) => Promise<number>;
saveMessage: (