🐛 Fix cached un-analyzed attachment meta

This commit is contained in:
LittleSheep 2024-12-14 01:45:36 +08:00
parent b618fcc6da
commit b750cc3c67
4 changed files with 4 additions and 9 deletions

View File

@ -187,7 +187,7 @@ class _AppSplashScreenState extends State<_AppSplashScreen> {
body: Container(
constraints: const BoxConstraints(maxWidth: 180),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
Image.asset("assets/icon/icon.png", width: 64, height: 64),

View File

@ -104,11 +104,6 @@ class ChatMessageInputState extends State<ChatMessageInput> {
return;
}
attach.putCache(
_attachments.where((e) => e.attachment != null).map((e) => e.attachment!),
noCheck: true,
);
// Send the message
// NOTICE This future should not be awaited, so that the message can be sent in the background and the user can continue to type
widget.controller.sendMessage(

View File

@ -482,10 +482,10 @@ packages:
dependency: "direct main"
description:
name: file_picker
sha256: "89500471922dd3a89ab0d6e13ab4a2268c25474bff4ca7c628f55c76e0ced1de"
sha256: "16dc141db5a2ccc6520ebb6a2eb5945b1b09e95085c021d9f914f8ded7f1465c"
url: "https://pub.dev"
source: hosted
version: "8.1.5"
version: "8.1.4"
file_saver:
dependency: "direct main"
description:

View File

@ -61,7 +61,7 @@ dependencies:
relative_time: ^5.0.0
image_picker: ^1.1.2
cross_file: ^0.3.4+2
file_picker: ^8.1.5 # pinned due to compile failed on android, https://github.com/miguelpruivo/flutter_file_picker/issues/1643
file_picker: 8.1.4 # pinned due to compile failed on android, https://github.com/miguelpruivo/flutter_file_picker/issues/1643
croppy: ^1.3.1
flutter_expandable_fab: ^2.3.0
dropdown_button2: ^2.3.9