updateRegradeMessagesAsReadSetting method

Future<void> updateRegradeMessagesAsReadSetting(
  1. bool isRead
)

Implementation

Future<void> updateRegradeMessagesAsReadSetting(bool isRead) async {
  Map req = {'isRead': isRead};
  Map result = await ClientChannel.invokeMethod(
      ChatMethodKeys.updateRegradeMessagesSetting, req);
  try {
    EMError.hasErrorFromResult(result);
    _options = _options?.copyWith(regardImportMessagesAsRead: isRead);
  } on EMError catch (e) {
    throw e;
  }
}