mirror of
https://github.com/immich-app/immich.git
synced 2024-12-26 10:50:29 +02:00
fix(mobile): reduce server version api calls (#4265)
This commit is contained in:
parent
fb7249d1f6
commit
d7e970dcea
@ -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…
Reference in New Issue
Block a user