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
. IfincludeAll
is provided astrue
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 asMap
that conatins two keys:user
andlast_seen_at
. IfincludeAll
is provided astrue
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
. IfincludeAll
is provided astrue
then current user will be included as well. -
markAsRead(
) → Future< void> - Marks as read with current time.