Matthias Nott
2026-03-24 981c65e48cd163c0c4ca898e83828f27952d1eba
fix: load messages for restored session on startup
1 files modified
changed files
lib/screens/chat_screen.dart patch | view | blame | history
lib/screens/chat_screen.dart
....@@ -78,6 +78,8 @@
7878 final savedSessionId = prefs.getString('activeSessionId');
7979 if (savedSessionId != null && mounted) {
8080 ref.read(activeSessionIdProvider.notifier).state = savedSessionId;
81
+ // Load messages for the restored session so chat isn't empty on startup
82
+ await ref.read(messagesProvider.notifier).switchSession(savedSessionId);
8183 }
8284 if (!mounted) return;
8385