From 9b58412ca7a6b70442245d3ea16e15339ea4a301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Sat, 6 Sep 2025 15:56:28 +0200 Subject: [PATCH] fixed missing no reaction text fixed loading indicator being delayed on file download --- lib/view/pages/talk/components/chatBubble.dart | 6 ++++-- lib/view/pages/talk/messageReactions.dart | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/view/pages/talk/components/chatBubble.dart b/lib/view/pages/talk/components/chatBubble.dart index 1095be0..fdf5239 100644 --- a/lib/view/pages/talk/components/chatBubble.dart +++ b/lib/view/pages/talk/components/chatBubble.dart @@ -323,7 +323,9 @@ class _ChatBubbleState extends State with SingleTickerProviderStateM return; } - downloadProgress = 1; + setState(() { + downloadProgress = 1; + }); downloadCore = FileElement.download(context, message.file!.path!, message.file!.name, (progress) { if(progress > 1) { setState(() { @@ -408,7 +410,7 @@ class _ChatBubbleState extends State with SingleTickerProviderStateM bottom: 0, right: 0, left: 0, - child: LinearProgressIndicator(value: downloadProgress/100), + child: LinearProgressIndicator(value: downloadProgress == 1 ? null : downloadProgress/100), ), ), ], diff --git a/lib/view/pages/talk/messageReactions.dart b/lib/view/pages/talk/messageReactions.dart index 1ab77ca..d06e33b 100644 --- a/lib/view/pages/talk/messageReactions.dart +++ b/lib/view/pages/talk/messageReactions.dart @@ -38,7 +38,7 @@ class _MessageReactionsState extends State { future: data, builder: (context, snapshot) { if(snapshot.connectionState == ConnectionState.waiting) return const LoadingSpinner(); - if(snapshot.data == null) return const PlaceholderView(icon: Icons.search_off_outlined, text: 'Keine Reaktionen gefunden!'); + if(snapshot.data!.data.isEmpty) return const PlaceholderView(icon: Icons.search_off_outlined, text: 'Keine Reaktionen gefunden!'); return ListView( children: [ ...snapshot.data!.data.entries.map((entry) => ExpansionTile(