updateRegradeMessagesAsReadSetting method

Future<void> updateRegradeMessagesAsReadSetting(
  1. bool isRead
)

Implementation

Future<void> updateRegradeMessagesAsReadSetting(bool isRead) async {
  try {
    Map req = {'isRead': isRead};
    Map result = await platform_interface.Client.instance.callNativeMethod(
      ChatMethodKeys.updateRegradeMessagesSetting,
      req,
    );
    ChatError.hasErrorFromResult(result);
    _options = _options?.copyWith(regardImportMessagesAsRead: isRead);
  } catch (e) {
    rethrow;
  }
}