From 25119a9b148a291ba0af4f9f70801d12f2309147 Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Sat, 21 Mar 2026 21:04:28 +0100
Subject: [PATCH] fix: audio chain playback, empty bubbles, playback state reset
---
lib/services/message_store.dart | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/services/message_store.dart b/lib/services/message_store.dart
index 424d73a..aa51fc8 100644
--- a/lib/services/message_store.dart
+++ b/lib/services/message_store.dart
@@ -83,7 +83,7 @@
final List<dynamic> jsonList = jsonDecode(jsonStr) as List<dynamic>;
final allMessages = jsonList
.map((j) => _messageFromJson(j as Map<String, dynamic>))
- .where((m) => !m.isEmptyVoice) // Filter out voice msgs with no content
+ .where((m) => !m.isEmptyVoice && !m.isEmptyText)
.toList();
// Paginate from the end (newest messages first in storage)
@@ -107,7 +107,7 @@
final List<dynamic> jsonList = jsonDecode(jsonStr) as List<dynamic>;
return jsonList
.map((j) => _messageFromJson(j as Map<String, dynamic>))
- .where((m) => !m.isEmptyVoice)
+ .where((m) => !m.isEmptyVoice && !m.isEmptyText)
.toList();
} catch (e) {
return [];
--
Gitblit v1.3.1