Update KeepMessageDuration for 1 year to 366 days.

This allows you to see messages that are exactly one year old (like
birthday wishes) as well as accounts for leap year.

Resolves #13889
This commit is contained in:
Rainer Matischek 2025-01-08 18:13:44 +01:00 committed by Greyson Parrelli
parent e969661699
commit 2a2a6e6a0d

View file

@ -9,7 +9,7 @@ import java.util.concurrent.TimeUnit;
public enum KeepMessagesDuration {
FOREVER(0, R.string.preferences_storage__forever, Long.MAX_VALUE),
ONE_YEAR(1, R.string.preferences_storage__one_year, TimeUnit.DAYS.toMillis(365)),
ONE_YEAR(1, R.string.preferences_storage__one_year, TimeUnit.DAYS.toMillis(366)),
SIX_MONTHS(2, R.string.preferences_storage__six_months, TimeUnit.DAYS.toMillis(183)),
THIRTY_DAYS(3, R.string.preferences_storage__thirty_days, TimeUnit.DAYS.toMillis(30));