Implement endorsements for group send

This commit is contained in:
Jamie Kyle 2024-09-06 10:52:19 -07:00 committed by GitHub
parent 5f82c82803
commit 24536e1342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 816 additions and 269 deletions

View file

@ -37,7 +37,10 @@ import type {
CallLinkType,
} from '../types/CallLink';
import type { AttachmentDownloadJobType } from '../types/AttachmentDownload';
import type { GroupSendEndorsementsData } from '../types/GroupSendEndorsements';
import type {
GroupSendEndorsementsData,
GroupSendMemberEndorsementRecord,
} from '../types/GroupSendEndorsements';
import type { SyncTaskType } from '../util/syncTasks';
import type { AttachmentBackupJobType } from '../types/AttachmentBackup';
import type { SingleProtoJobQueue } from '../jobs/singleProtoJobQueue';
@ -481,6 +484,13 @@ type ReadableInterface = {
) => Array<ConversationType>;
getGroupSendCombinedEndorsementExpiration: (groupId: string) => number | null;
getGroupSendEndorsementsData: (
groupId: string
) => GroupSendEndorsementsData | null;
getGroupSendMemberEndorsement: (
groupId: string,
memberAci: AciString
) => GroupSendMemberEndorsementRecord | null;
getMessageCount: (conversationId?: string) => number;
getStoryCount: (conversationId: string) => number;