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 (file.size > _kMaxAttachmentSize) {
if (attachmentType == 'video') { if (attachmentType == 'video') {
final mediaInfo = await CompressVideoService.instance final mediaInfo =
.compressVideo(file.path, _kMaxAttachmentSize); await CompressVideoService.instance.compressVideo(file.path);
file = PlatformFile( file = PlatformFile(
name: mediaInfo.title, name: mediaInfo.title,
size: mediaInfo.filesize, size: mediaInfo.filesize,