feat: warn for outdated versions after 6 months (#7144)

3 months were proven to be too short some years ago, after that issue,
we went far up to 12 months.
however, 12 months were considered too long after recent discussions :)
so, 6 months seems to be a good compromise.

the warning is still repeated every months and the text is unchanged.

advantage is still that this approach does not require network or
opt-in, and catches really all lazy updaters with few effort, cmp
https://github.com/deltachat/deltachat-desktop/issues/5422
This commit is contained in:
bjoern
2025-09-01 17:44:54 +02:00
committed by GitHub
parent e6ab1e3df5
commit 6b338a923c
2 changed files with 5 additions and 6 deletions

View File

@@ -437,11 +437,10 @@ async fn test_maybe_warn_on_outdated() {
let t = TestContext::new().await;
let timestamp_now: i64 = time();
// in about 6 months, the app should not be outdated
// (if this fails, provider-db is not updated since 6 months)
// in about 3 months, the app should not be outdated
maybe_warn_on_outdated(
&t,
timestamp_now + 180 * 24 * 60 * 60,
timestamp_now + 90 * 24 * 60 * 60,
get_release_timestamp(),
)
.await;