@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
13 lines (12 loc) • 517 B
TypeScript
export interface UseMarkConversationAsReadProps {
conversationId: string;
}
/**
* Internal hook — called by ConversationProvider, not intended for direct use.
* Advances the server-side lastReadAt to the given message's createdAt and
* resets the local unread count to 0 immediately (optimistic clear).
*/
declare function useMarkConversationAsRead({ conversationId, }: UseMarkConversationAsReadProps): ({ messageId }: {
messageId: string;
}) => Promise<void>;
export default useMarkConversationAsRead;