conversationReadState

Get the read cursor and the unread count of the caller for a conversation to show unread badges; returns the last read message and the number of unread messages.

Arguments

  • conversationIdID!required

Responses

query ConversationReadState($conversationId: ID!) {  conversationReadState(conversationId: $conversationId) {    conversationId    lastReadMessageId    unreadCount  }}
{  "data": {    "conversationReadState": {      "conversationId": "string",      "lastReadMessageId": "string",      "unreadCount": 0    }  }}

The ConversationReadState! in data.conversationReadState.