getChatReadState(userId: string): ChatReadState
Returns how far userId has read the chat. A user who never opened it has
read up to their registration, so the history from before it isn't unread.
getChatReadState(userId: string): ChatReadState
Returns how far userId has read the chat. A user who never opened it has
read up to their registration, so the history from before it isn't unread.
import { getChatReadState } from "api/services/chat-service.ts";