From 40a79fbad531fd76c5e5c5977840396cf2df21b2 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Wed, 4 Dec 2024 17:46:00 +0100 Subject: [PATCH] add "After 90 days" option to disappearing messages --- .../java/org/thoughtcrime/securesms/EphemeralMessagesDialog.java | 1 + src/main/res/values/arrays.xml | 1 + src/main/res/values/strings.xml | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/java/org/thoughtcrime/securesms/EphemeralMessagesDialog.java b/src/main/java/org/thoughtcrime/securesms/EphemeralMessagesDialog.java index 12b09669dd..63b5c4eb87 100644 --- a/src/main/java/org/thoughtcrime/securesms/EphemeralMessagesDialog.java +++ b/src/main/java/org/thoughtcrime/securesms/EphemeralMessagesDialog.java @@ -67,6 +67,7 @@ public static void show(final Context context, int currentSelectedTime, final @N case 5: burnAfter = TimeUnit.DAYS.toSeconds(1); break; case 6: burnAfter = TimeUnit.DAYS.toSeconds(7); break; case 7: burnAfter = TimeUnit.DAYS.toSeconds(35); break; + case 8: burnAfter = TimeUnit.DAYS.toSeconds(90); break; default: burnAfter = 0; break; } listener.onTimeSelected(burnAfter); diff --git a/src/main/res/values/arrays.xml b/src/main/res/values/arrays.xml index 71c05125bf..0b15bd7052 100644 --- a/src/main/res/values/arrays.xml +++ b/src/main/res/values/arrays.xml @@ -56,6 +56,7 @@ @string/autodel_after_1_day @string/autodel_after_1_week @string/after_5_weeks + @string/autodel_after_90_days diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index a7e06b4bca..4d24b63f4f 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -851,6 +851,7 @@ After 1 day After 1 week After 5 weeks + After 90 days After 1 year