markThreadUnread method
Mark the thread with threadId in the channel as unread.
Implementation
Future<EmptyResponse> markThreadUnread(String threadId) async {
_checkInitialized();
if (!canUseReadReceipts) {
throw const StreamChatError(
'Cannot mark thread as unread: Channel does not support read events. '
'Enable read_events in your channel type configuration.',
);
}
return _client.markThreadUnread(id!, type, threadId);
}