Skip to content

Allow dismissing outdated server version warning permanently - #18044

Open
alab2296 wants to merge 1 commit into
nextcloud:masterfrom
alab2296:fix/outdated-server-warning-dismiss
Open

alab2296 wants to merge 1 commit into
nextcloud:masterfrom
alab2296:fix/outdated-server-warning-dismiss

Conversation

@alab2296

@alab2296 alab2296 commented Nov 12, 2026 •

Copy link
Copy Markdown

Summary

Fixes #3855

The outdated server version warning (snackbar) was shown repeatedly on every app start with no way to permanently dismiss it. The dismiss button existed but did nothing.

Changes

  • Added getDismissedOutdatedServerVersion() and setDismissedOutdatedServerVersion(String) to AppPreferences interface and AppPreferencesImpl
  • Modified FileDisplayActivity.showOutdatedServerWarningIfNeeded() to compare the current server version against the stored dismissed version before showing the warning
  • Modified SnackbarUtil.showServerOutdated() to accept an optional onDismiss callback, which stores the dismissed version when the user taps Dismiss

Behaviour

  • Warning shows as before if the user has never dismissed it
  • Tapping Dismiss saves the current server version — warning will not appear again for that version
  • If the server is upgraded to a newer (still outdated) version, the warning reappears once

Test plan

  • Fresh install: outdated server warning appears on first load
  • Tap Dismiss: warning disappears and does not reappear on next app start
  • Upgrade server to a different outdated version: warning reappears once

Adds a preference to store the dismissed server version string.
Before showing the warning, the current version is compared against
the stored dismissed version. On dismiss, the version is saved so
the warning does not reappear for the same server version.

Fixes nextcloud#3855

Signed-off-by: alab2296 <alab2296@users.noreply.github.com>
@alab2296
alab2296 force-pushed the fix/outdated-server-warning-dismiss branch from 8943492 to d7f5843 Compare November 14, 2026 09:23

This branch has not been deployed

No deployments
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.

Make possible to disable repeated notifications about outdated server versions.

1 participant