GroupChannelRead extension

Set of functionality related to read feature for group channel

on

Methods

getReadMembers(BaseMessage message, {bool includeAll = false}) List<Member>
Returns a list of Member who has read given message. If includeAll is provided as true then current user will be included as well.
getReadStatus(bool includeAll) Map<String, Map<String, dynamic>>
Returns Map with key as userId String and value as Map that conatins two keys: user and last_seen_at. If includeAll is provided as true then current user will be included as well.
getUndeliveredMembers(BaseMessage message) List<Member>
Returns undelivered member count as int with given message.
getUnreadMembers(BaseMessage message, {bool includeAll = false}) List<Member>
Returns a list of Member who has not read given message. If includeAll is provided as true then current user will be included as well.
markAsRead() Future<void>
Marks as read with current time.