function getChatReadState
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.

Parameters

userId: string

Return Type

Throws

APIException

404 when there is no such user.

Usage

import { getChatReadState } from "api/services/chat-service.ts";