Skip to content
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

Normalize the local app version when checking for updates #20061

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

novocaine
Copy link
Contributor

@novocaine novocaine commented Dec 6, 2021

We need to strip the leading v from the local app version in pollForUpdate to ensure it compares correctly the version from the /version request indicating what the latest available version is. Previously, we only stripped the leading in getAppVersion which is used in some other places but not to decide whether an update is available.

Fixes #20058


This PR currently has no changelog labels, so will not be included in changelogs.

A reviewer can add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is, or add Type: [enhancement/defect/task] to the description and I'll add them for you.

We need to strip the leading v from the local app version as well as the one fetched from the server
@novocaine novocaine requested a review from a team as a code owner December 6, 2021 12:04
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will be needed on the release branch too

@novocaine novocaine changed the title Normalize the local app version Normalize the local app version when checking for updates Dec 6, 2021
@novocaine novocaine merged commit 60788da into develop Dec 6, 2021
@novocaine novocaine deleted the normalize-app-version branch December 6, 2021 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

staging.element.io always reports updates are available
2 participants