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 givenmessage
. IfincludeAll
is provided astrue
then current user will be included as well. -
getReadStatus(
bool includeAll) → Map< String, Map< String, dynamic> > -
Available on GroupChannel, provided by the GroupChannelRead extension
ReturnsMap
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> -
Available on GroupChannel, provided by the GroupChannelRead extension
Returns undelivered member count as int with givenmessage
. -
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 givenmessage
. IfincludeAll
is provided astrue
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.