fix error

This commit is contained in:
Salvatore Giordano
2020-11-25 17:19:38 +01:00
parent 2ea38c128b
commit efd6bfdc8e
+2 -2
View File
@@ -1556,8 +1556,8 @@ class MessageInputState extends State<MessageInput> {
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,