read method

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

Mark the conversation as read.

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

Implementation

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