/ SDKs / Flutter
SDKs
Chat SDKs Flutter v4
Chat SDKs Flutter
Chat SDKs
Flutter
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() 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 contain the current user.
final membersReadStatus = groupChannel.getReadStatus(true);
membersReadStatus.forEach((String userId, Map<String, dynamic> status) {
  // Handle the read status of each member.
  // You can get data from status['user'], status['last_seen_at'].
});