fix: diary loading

This commit is contained in:
mso7nueh
2026-04-24 16:54:04 +03:00
parent 10c7e0a584
commit 9ef9a7289c
13 changed files with 532 additions and 83 deletions

View File

@@ -80,6 +80,12 @@ class OtherRoutes {
}
return RouteConstants.verifyEmailScreen;
} catch (e) {
// Offline-first: если токен есть, но сеть недоступна —
// пускаем в приложение с кэшированными данными.
// На auth-screen отправляем только если токена нет.
if (await TokenStorage.haveTokenInStorage()) {
return RouteConstants.feedScreen;
}
return '/auth-screen';
}
} else {