mirror of
https://github.com/temetro/temetro.git
synced 2026-08-05 16:37:42 +00:00
backend: per-conversation unread counts
Count messages from others newer than the caller's read pointer alongside the existing last-message lookup, expose it as unreadCount on ConversationSummary, and derive the unread boolean from it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,5 +21,7 @@ export type ConversationSummary = {
|
||||
participants: Participant[];
|
||||
lastMessage: ConversationMessage | null;
|
||||
unread: boolean;
|
||||
// Messages from others newer than the caller's read pointer.
|
||||
unreadCount: number;
|
||||
updatedAt: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user