Matthias Nott
2026-03-21 25119a9b148a291ba0af4f9f70801d12f2309147
lib/services/message_store.dart
....@@ -83,7 +83,7 @@
8383 final List<dynamic> jsonList = jsonDecode(jsonStr) as List<dynamic>;
8484 final allMessages = jsonList
8585 .map((j) => _messageFromJson(j as Map<String, dynamic>))
86
- .where((m) => !m.isEmptyVoice) // Filter out voice msgs with no content
86
+ .where((m) => !m.isEmptyVoice && !m.isEmptyText)
8787 .toList();
8888
8989 // Paginate from the end (newest messages first in storage)
....@@ -107,7 +107,7 @@
107107 final List<dynamic> jsonList = jsonDecode(jsonStr) as List<dynamic>;
108108 return jsonList
109109 .map((j) => _messageFromJson(j as Map<String, dynamic>))
110
- .where((m) => !m.isEmptyVoice)
110
+ .where((m) => !m.isEmptyVoice && !m.isEmptyText)
111111 .toList();
112112 } catch (e) {
113113 return [];