Support unread reminders

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-09-23 22:20:17 +00:00
committed by GitHub
co-authored by trevor-signal
parent d5bcb1ba30
commit 4d737568c3
31 changed files with 1841 additions and 44 deletions
+12
View File
@@ -55,6 +55,11 @@ import type {
GroupSendMemberEndorsementRecord,
} from '../types/GroupSendEndorsements.std.ts';
import type { SyncTaskType } from '../util/syncTasks.preload.ts';
import type {
UnreadMessageTimeRange,
UnreadReminderConversationCandidate,
UnreadReminderSummaryData,
} from './server/unreadReminders.std.ts';
import type { AttachmentBackupJobType } from '../types/AttachmentBackup.std.ts';
import type { AttachmentType } from '../types/Attachment.std.ts';
import type { MediaItemMessageType } from '../types/MediaItem.std.ts';
@@ -928,6 +933,13 @@ type ReadableInterface = {
includeStoryReplies: boolean;
}
) => number;
getUnremindedUnreadMessageTimeRanges: (
conversations: ReadonlyArray<UnreadReminderConversationCandidate>
) => ReadonlyArray<UnreadMessageTimeRange>;
getUnreadReminderSummaryData: (
conversationId: string,
options: { includeStoryReplies: boolean; ourAci: AciString }
) => UnreadReminderSummaryData;
getTotalUnreadMentionsOfMeForConversation: (
conversationId: string,
options: {