SetReadStateForItemsInConversation method

Future<void> SetReadStateForItemsInConversation(
  1. FolderId? contextFolderId,
  2. bool isRead
)
Sets the read state of items in the specified conversation. Calling this method results in a call to EWS. The Id of the folder items must belong to in order for their read state to be set. If contextFolderId is null, the read states of items across the entire mailbox are set. if set to , conversation items are marked as read; otherwise they are marked as unread.

Implementation

Future<void> SetReadStateForItemsInConversation(
  FolderId? contextFolderId,
  bool isRead,
) async {
  // ExchangeService.SetReadStateForItemsInConversations
  (await _ApplyConversationOneTimeAction(
    ConversationActionType.SetReadState,
    [MapEntry(Id!, GlobalLastDeliveryTime)],
    contextFolderId,
    null,
    null,
    isRead,
    null,
    null,
    null,
    null,
    ServiceErrorHandling.ReturnErrors,
  ))[0].ThrowIfNecessary();
}