unread method

Future<void> unread({
  1. List? otherConversations,
})

Mark the conversation as unread.

If otherConversations is provided, those conversations will also be marked as unread.

Implementation

Future<void> unread({List? otherConversations}) async {
  final data = <String, String>{
    'conversationIds': _buildConversationList(
        otherConversations as List<ModmailConversation>?),
  };
  return await reddit.post(
      apiPath['modmail_unread'].replaceAll(_kIdRegExp, id), data);
}