updateAutoDownloadAttachmentThumbnailSetting method

Future<void> updateAutoDownloadAttachmentThumbnailSetting(
  1. bool autoDownloadThumbnail
)

Implementation

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