🐛 Finish bug fixes

This commit is contained in:
2025-03-22 21:50:01 +08:00
parent 6e6c3f42f6
commit 55b79bfd8f
18 changed files with 166 additions and 122 deletions

View File

@ -64,6 +64,7 @@ class UserProvider extends ChangeNotifier {
}
Future<SnAccount?> refreshUser() async {
if (!isAuthorized) return null;
final resp = await _sn.client.get('/cgi/id/users/me');
final out = SnAccount.fromJson(resp.data);