diff --git a/src/constants.rs b/src/constants.rs index 59b69d8450..5a615ace18 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -95,10 +95,10 @@ pub const DC_GCL_ADDRESS: u32 = 0x04; pub(crate) const DC_RESEND_USER_AVATAR_DAYS: i64 = 14; // warn about an outdated app after a given number of days. -// as we use the "provider-db generation date" as reference (that might not be updated very often) -// and as not all system get speedy updates, +// reference is the release date. +// as not all system get speedy updates, // do not use too small value that will annoy users checking for nonexistent updates. -pub(crate) const DC_OUTDATED_WARNING_DAYS: i64 = 365; +pub(crate) const DC_OUTDATED_WARNING_DAYS: i64 = 183; /// messages that should be deleted get this chat_id; the messages are deleted from the working thread later then. This is also needed as rfc724_mid should be preset as long as the message is not deleted on the server (otherwise it is downloaded again) pub const DC_CHAT_ID_TRASH: ChatId = ChatId::new(3); diff --git a/src/tools/tools_tests.rs b/src/tools/tools_tests.rs index 728f0e47ad..78859cf2f7 100644 --- a/src/tools/tools_tests.rs +++ b/src/tools/tools_tests.rs @@ -434,11 +434,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;