Skip to content

Commit 29187a9

Browse files
committed
drop disappearing messages options 1 and 30 minutes
- with the recent change to start the timer when the chat is opened, one minute is too easy too short to miss important information - "30 minutes" does not really fit into the distribution; all other option have at least the factor 5 to the previous one, from "30 minutes" to "60 minutes", the time is doubled only. removing the overall number of options and dropping the ones without larger usecases, does not only simplifies UI; having less tiny details also reduces noise in groups where ppl people changing it very often for various weird reasons (found the latter point somewhere in the Signal forum, btw)
1 parent d4ddb68 commit 29187a9

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

src/main/java/org/thoughtcrime/securesms/EphemeralMessagesDialog.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,12 @@ public static void show(final Context context, int currentSelectedTime, final @N
6060
.setPositiveButton(R.string.ok, (dialog, which) -> {
6161
final long burnAfter;
6262
switch (selectedChoice[0]) {
63-
case 1: burnAfter = TimeUnit.MINUTES.toSeconds(1); break;
64-
case 2: burnAfter = TimeUnit.MINUTES.toSeconds(5); break;
65-
case 3: burnAfter = TimeUnit.MINUTES.toSeconds(30); break;
66-
case 4: burnAfter = TimeUnit.HOURS.toSeconds(1); break;
67-
case 5: burnAfter = TimeUnit.DAYS.toSeconds(1); break;
68-
case 6: burnAfter = TimeUnit.DAYS.toSeconds(7); break;
69-
case 7: burnAfter = TimeUnit.DAYS.toSeconds(35); break;
70-
case 8: burnAfter = TimeUnit.DAYS.toSeconds(365); break;
63+
case 1: burnAfter = TimeUnit.MINUTES.toSeconds(5); break;
64+
case 2: burnAfter = TimeUnit.HOURS.toSeconds(1); break;
65+
case 3: burnAfter = TimeUnit.DAYS.toSeconds(1); break;
66+
case 4: burnAfter = TimeUnit.DAYS.toSeconds(7); break;
67+
case 5: burnAfter = TimeUnit.DAYS.toSeconds(35); break;
68+
case 6: burnAfter = TimeUnit.DAYS.toSeconds(365); break;
7169
default: burnAfter = 0; break;
7270
}
7371
listener.onTimeSelected(burnAfter);

src/main/res/values/arrays.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@
4949

5050
<string-array name="ephemeral_message_durations">
5151
<!-- 0 --> <item>@string/off</item>
52-
<!-- 1 --> <item>@string/after_1_minute</item>
53-
<!-- 2 --> <item>@string/after_5_minutes</item>
54-
<!-- 3 --> <item>@string/after_30_minutes</item>
55-
<!-- 4 --> <item>@string/autodel_after_1_hour</item>
56-
<!-- 5 --> <item>@string/autodel_after_1_day</item>
57-
<!-- 6 --> <item>@string/autodel_after_1_week</item>
58-
<!-- 7 --> <item>@string/after_5_weeks</item>
59-
<!-- 8 --> <item>@string/autodel_after_1_year</item>
52+
<!-- 1 --> <item>@string/after_5_minutes</item>
53+
<!-- 2 --> <item>@string/autodel_after_1_hour</item>
54+
<!-- 3 --> <item>@string/autodel_after_1_day</item>
55+
<!-- 4 --> <item>@string/autodel_after_1_week</item>
56+
<!-- 5 --> <item>@string/after_5_weeks</item>
57+
<!-- 6 --> <item>@string/autodel_after_1_year</item>
6058
</string-array>
6159

6260
<string-array name="mute_durations">

0 commit comments

Comments
 (0)