/ SDKs / Android
SDKs
Chat SDKs Android v4
Chat SDKs Android
Chat SDKs
Android
Version 4

Get read status of a message

Copy link

In a group channel, the read status of messages is crucial for understanding which messages have been read by which members. This document explains how to get read status of a message in a group channel.

You can get the read status of all members in the channel through the getReadStatus() method in the Group channel class. If its parameter includeAllMembers is set to false, the result won't contain the read status of the current user.

// If includeAllMembers is false, the result won't include the current user.
val membersReadStatus = groupChannel.getReadStatus(includeAllMembers = true)
membersReadStatus.forEach { userId, status ->
    // Handle the read status of each member.
}