From f522c8183429a9e44c59c07f94fbbc5084a3309a Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 27 Dec 2021 17:59:45 +0100 Subject: [PATCH] chore: fix video follow up --- lib/utils/resize_image.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/resize_image.dart b/lib/utils/resize_image.dart index da2a7b2a..da130ad3 100644 --- a/lib/utils/resize_image.dart +++ b/lib/utils/resize_image.dart @@ -21,8 +21,8 @@ extension ResizeImage on MatrixFile { Future resizeVideo() async { final tmpDir = await getTemporaryDirectory(); - final tmpFile = File(tmpDir.path + name); - final compressedFile = File(tmpDir.path + 'compressed_' + name); + final tmpFile = File(tmpDir.path + '/' + name); + final compressedFile = File(tmpDir.path + '/compressed_' + name); MediaInfo? mediaInfo; await tmpFile.writeAsBytes(bytes); try { @@ -43,7 +43,7 @@ extension ResizeImage on MatrixFile { Future getVideoThumbnail() async { if (!PlatformInfos.isMobile) return null; final tmpDir = await getTemporaryDirectory(); - final tmpFile = File(tmpDir.path + name); + final tmpFile = File(tmpDir.path + '/' + name); if (await tmpFile.exists() == false) { await tmpFile.writeAsBytes(bytes); }