verifyLoginStateAndLoadData method

Future<void> verifyLoginStateAndLoadData()

Verify login state and reload encrypted places if needed.

Implementation

Future<void> verifyLoginStateAndLoadData() async {
  if (!mounted || !isLoggedIn) return;

  if (mapSettings.showEncryptedPlaces) {
    // Fetch encrypted places - this will reload from pod if needed.
    await EncryptedPlacesService.fetchEncryptedPlaces(forceRefresh: true);
    if (!mounted) return;
    await loadAllPlaces();
  }
}