mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user