downloadMessageThumbnailInCombine method

Future<void> downloadMessageThumbnailInCombine(
  1. ChatMessage message
)

Downloads the thumbnail if the message has not been downloaded before or if the download fails.

Param message The message object.

Throws A description of the exception. See ChatError.

Implementation

Future<void> downloadMessageThumbnailInCombine(ChatMessage message) async {
  try {
    Map result = await platform_interface.Client.instance.chatManager.callNativeMethod(
        ChatMethodKeys.downloadMessageThumbnailInCombine,
        {"message": message.toJson()});
    ChatError.hasErrorFromResult(result);
  } catch (e) {
    rethrow;
  }
}