feat: 重构会话管理与提醒通知系统

This commit is contained in:
qzl
2026-03-31 18:26:36 +08:00
parent a8c262e9c7
commit 9a231dae9e
31 changed files with 650 additions and 223 deletions
+4 -3
View File
@@ -91,10 +91,11 @@ String? resolveAuthRedirect({
return null;
}
Widget buildHomeRouteScreen() {
Widget buildHomeRouteScreen(AuthState authState) {
final userId = authState is AuthAuthenticated ? authState.user.id : null;
return BlocProvider<ChatBloc>.value(
value: sl<ChatBloc>(),
child: const HomeScreen(),
child: HomeScreen(initialUserId: userId),
);
}
@@ -149,7 +150,7 @@ GoRouter createAppRouter(AuthBloc authBloc) {
),
GoRoute(
path: AppRoutes.homeMain,
builder: (context, state) => buildHomeRouteScreen(),
builder: (context, state) => buildHomeRouteScreen(authBloc.state),
),
GoRoute(
path: AppRoutes.messageInviteList,