From ed1b75bacf59500813e55c85a709e6c541829f88 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 3 Apr 2025 00:25:32 +0800 Subject: [PATCH] :bug: Fix user did not refresh since login --- lib/widgets/unauthorized_hint.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/widgets/unauthorized_hint.dart b/lib/widgets/unauthorized_hint.dart index ca10e30..9d4ea5a 100644 --- a/lib/widgets/unauthorized_hint.dart +++ b/lib/widgets/unauthorized_hint.dart @@ -40,6 +40,7 @@ class UnauthorizedHint extends StatelessWidget { GoRouter.of(context).pushNamed('authLogin').then((value) { if (value == true && context.mounted) { final ua = context.read(); + ua.refreshUser(); context.showSnackbar('loginSuccess'.tr(args: [ '@${ua.user?.name} (${ua.user?.nick})', ]));