From efd6bfdc8e64bdbddbb645417ac76cbd193d0b90 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Wed, 25 Nov 2020 17:19:38 +0100 Subject: [PATCH] fix error --- lib/src/message_input.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 9a8b1f75..d3482806 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -1556,8 +1556,8 @@ class MessageInputState extends State { if (file.size > _kMaxAttachmentSize) { if (attachmentType == 'video') { - final mediaInfo = await CompressVideoService.instance - .compressVideo(file.path, _kMaxAttachmentSize); + final mediaInfo = + await CompressVideoService.instance.compressVideo(file.path); file = PlatformFile( name: mediaInfo.title, size: mediaInfo.filesize,