markAsRead method

Future<void> markAsRead({
  1. required List<String> channelUrls,
})

Mark list of group channels with channelUrls as read.

Implementation

Future<void> markAsRead({required List<String> channelUrls}) async {
  if (channelUrls.isEmpty) throw InvalidParameterError();
  await _int.api.send(GroupChannelMarkAsReadApiRequest(
    channelUrls: channelUrls,
    userId: _int.state.userId,
  ));
}