GroupChannelRead extension

Set of functionality related to read feature for group channel

on

Methods

getReadMembers(BaseMessage message, {bool includeAll = false}) List<Member>

Available on GroupChannel, provided by the GroupChannelRead extension

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>>

Available on GroupChannel, provided by the GroupChannelRead extension

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>

Available on GroupChannel, provided by the GroupChannelRead extension

Returns undelivered member count as int with given message.
getUnreadMembers(BaseMessage message, {bool includeAll = false}) List<Member>

Available on GroupChannel, provided by the GroupChannelRead extension

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>

Available on GroupChannel, provided by the GroupChannelRead extension

Marks as read with current time.