Avoid race condition when marking messages read

This commit is contained in:
trevor-signal 2025-07-16 13:47:07 -04:00 committed by GitHub
commit ea3a7f70b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 58 additions and 50 deletions

View file

@ -983,18 +983,18 @@ type WritableInterface = {
getUnreadByConversationAndMarkRead: (options: {
conversationId: string;
includeStoryReplies: boolean;
newestUnreadAt: number;
readMessageReceivedAt: number;
now?: number;
readAt?: number;
storyId?: string;
}) => GetUnreadByConversationAndMarkReadResultType;
getUnreadEditedMessagesAndMarkRead: (options: {
conversationId: string;
newestUnreadAt: number;
readMessageReceivedAt: number;
}) => GetUnreadByConversationAndMarkReadResultType;
getUnreadReactionsAndMarkRead: (options: {
conversationId: string;
newestUnreadAt: number;
readMessageReceivedAt: number;
storyId?: string;
}) => Array<ReactionResultType>;
markReactionAsRead: (