/ SDKs / iOS
SDKs
Chat SDKs iOS v4
Chat SDKs iOS
Chat SDKs
iOS
Version 4

Get read status of a message

Copy link

You can get the read status of messages in a group channel using the getReadStatus(with:) method. The method returns a list of objects with the user ID as the key and the read status as the value. The read status object contains the timestamp of the last message the user has seen.

// If with is false, the result won't include the current user.
let membersReadStatus = groupChannel.getReadStatus(with: false)
membersReadStatus.forEach { userId, readStatus in
    // Handle the read status of each member.
}