Matthias Nott
2026-03-21 25119a9b148a291ba0af4f9f70801d12f2309147
lib/screens/chat_screen.dart
....@@ -56,6 +56,18 @@
5656 final prefs = await SharedPreferences.getInstance();
5757 _lastSeq = prefs.getInt('lastSeq') ?? 0;
5858 if (!mounted) return;
59
+
60
+ // Listen for playback state changes to reset play button UI
61
+ AudioService.onPlaybackStateChanged = () {
62
+ if (mounted) {
63
+ setState(() {
64
+ if (!AudioService.isPlaying) {
65
+ _playingMessageId = null;
66
+ }
67
+ });
68
+ }
69
+ };
70
+
5971 _initConnection();
6072 }
6173