From 58a3b8ad7ff9b7dabd5a47ee5e47ae8f337ef13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lollipopkit=F0=9F=8F=B3=EF=B8=8F=E2=80=8D=E2=9A=A7?= =?UTF-8?q?=EF=B8=8F?= <10864310+lollipopkit@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:39:44 +0800 Subject: [PATCH] fix: can't share chats as pic (#205) Fixes #204 --- lib/view/page/home/ctrl.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view/page/home/ctrl.dart b/lib/view/page/home/ctrl.dart index c3dde51..e1cabcb 100644 --- a/lib/view/page/home/ctrl.dart +++ b/lib/view/page/home/ctrl.dart @@ -231,7 +231,7 @@ void _onShareChat(BuildContext context) async { ); compressImg = Stores.setting.compressImg.get(); if (compressImg) { - return await ImageUtil.compress(raw); + return await ImageUtil.compress(raw, mime: 'image/png'); } return raw; });