Gate Flutter app behind Telegram
Some checks failed
Build and deploy Flutter Web / build (push) Failing after 3m19s

This commit is contained in:
Ruslan Bakiev
2026-05-08 17:41:53 +07:00
parent 383e4d2307
commit 5b7b5771a1
7 changed files with 110 additions and 13 deletions

View File

@@ -67,6 +67,22 @@ class PlaceController extends AsyncNotifier<PlaceState> {
@override
Future<PlaceState> build() async {
if (!_api.hasTelegramAuth) {
return const PlaceState(
selectedTrait: PlaceTrait.calm,
places: [],
selectedPlaceId: null,
currentUser: null,
hasTelegramAuth: false,
reviewDraft: VoiceReviewDraft(
placeName: '',
duration: Duration.zero,
extractedTraits: {},
evidence: [],
),
);
}
final currentUser = await _api.authenticateTelegram();
final places = await _api.fetchPlaces();
return PlaceState(