Skip to content

Commit

Permalink
add "After 90 days" option to disappearing messages
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Dec 4, 2024
1 parent 539cb67 commit 40a79fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<!-- 5 --> <item>@string/autodel_after_1_day</item>
<!-- 6 --> <item>@string/autodel_after_1_week</item>
<!-- 7 --> <item>@string/after_5_weeks</item>
<!-- 8 --> <item>@string/autodel_after_90_days</item>
</string-array>

<string-array name="mute_durations">
Expand Down
1 change: 1 addition & 0 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@
<string name="autodel_after_1_day">After 1 day</string>
<string name="autodel_after_1_week">After 1 week</string>
<string name="after_5_weeks">After 5 weeks</string>
<string name="autodel_after_90_days">After 90 days</string>
<string name="autodel_after_1_year">After 1 year</string>

<!-- autocrypt -->
Expand Down

0 comments on commit 40a79fb

Please sign in to comment.