Matthias Nott
2026-04-01 4f8a5ffb6f60ffc8804a809bb6e5d413a098b84c
fix: always show date in message timestamps
1 files modified
changed files
lib/widgets/message_bubble.dart patch | view | blame | history
lib/widgets/message_bubble.dart
....@@ -327,11 +327,7 @@
327327 Widget _buildFooter(BuildContext context) {
328328 final isDark = Theme.of(context).brightness == Brightness.dark;
329329 final dt = DateTime.fromMillisecondsSinceEpoch(message.timestamp);
330
- final now = DateTime.now();
331
- final isToday = dt.year == now.year && dt.month == now.month && dt.day == now.day;
332
- final time = isToday
333
- ? DateFormat('HH:mm').format(dt)
334
- : DateFormat('dd.MM. HH:mm').format(dt);
330
+ final time = DateFormat('dd.MM. HH:mm').format(dt);
335331
336332 return Row(
337333 mainAxisSize: MainAxisSize.min,