mirror of
https://github.com/immich-app/immich.git
synced 2025-02-11 01:18:24 -05:00
fix(mobile): reduce server version api calls (#4265)
This commit is contained in:
parent
fb7249d1f6
commit
d7e970dcea
2 changed files with 2 additions and 1 deletions
|
@ -117,6 +117,7 @@ class SharingPage extends HookConsumerWidget {
|
||||||
padding: const EdgeInsets.only(
|
padding: const EdgeInsets.only(
|
||||||
left: 12.0,
|
left: 12.0,
|
||||||
right: 12.0,
|
right: 12.0,
|
||||||
|
top: 24.0,
|
||||||
bottom: 12.0,
|
bottom: 12.0,
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
|
@ -64,10 +64,10 @@ class TabNavigationObserver extends AutoRouterObserver {
|
||||||
}
|
}
|
||||||
|
|
||||||
Store.put(StoreKey.currentUser, User.fromDto(userResponseDto));
|
Store.put(StoreKey.currentUser, User.fromDto(userResponseDto));
|
||||||
|
ref.read(serverInfoProvider.notifier).getServerVersion();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
debugPrint("Error refreshing user info $e");
|
debugPrint("Error refreshing user info $e");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ref.watch(serverInfoProvider.notifier).getServerVersion();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue