-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
fix(mobile): hide latest version if disabled #25691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| child: Text( | ||
| serverInfoState.latestVersion.major > 0 | ||
| ? "${serverInfoState.latestVersion.major}.${serverInfoState.latestVersion.minor}.${serverInfoState.latestVersion.patch}" | ||
| serverInfoState.latestVersion!.major > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised this was needed - I thought flutter/dart would know that it's safe given the above guard.
f9dad52 to
63a2cb4
Compare
|
As mentioned in Discord, I think this is okay? We could also just leave it as is and move the check for the major version > 0 up a bit. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
5a5916f to
d93f4d3
Compare
Can we move all the build related changes to it's own PR and keep this scoped to the version changes? |
|
You got it @shenlong-tanwen - give me a bit and I will put that in a different PR. |
If the version check feature is disabled, the server will currently send stale data to the client. In addition to no longer sending stale data, the client should also not show the latest version if the feature is disabled. This complements the server PR #25688.
d93f4d3 to
9b9aa4a
Compare
858cb5f to
ee58869
Compare
Description
If the version check feature is disabled, the server will currently send stale data to the client. In addition to no longer sending stale data, the client should also not show the latest version if the feature is disabled.
This complements the server PR #25688.
How Has This Been Tested?
I commented out this line in
mobile/lib/providers/websocket.provider.dart:then ran the app. The row was not present. With that line, it is.
Screenshots (if appropriate)
Checklist:
src/services/uses repositories implementations for database calls, filesystem operations, etc.src/repositories/is pretty basic/simple and does not have any immich specific logic (that belongs insrc/services/)Please describe to which degree, if any, an LLM was used in creating this pull request.
N/A