add mute option for 8 hours

This commit is contained in:
B. Petersen
2025-03-13 16:50:16 +01:00
committed by bjoern
parent 10c538ac8e
commit d383bcc451
3 changed files with 4 additions and 2 deletions
@@ -19,7 +19,7 @@ public class MuteDialog {
// See https://c.delta.chat/classdc__context__t.html#a6460395925d49d2053bc95224bf5ce37.
switch (which) {
case 0: muteUntil = TimeUnit.HOURS.toSeconds(1); break;
case 1: muteUntil = TimeUnit.HOURS.toSeconds(2); break;
case 1: muteUntil = TimeUnit.HOURS.toSeconds(8); break;
case 2: muteUntil = TimeUnit.DAYS.toSeconds(1); break;
case 3: muteUntil = TimeUnit.DAYS.toSeconds(7); break;
case 4: muteUntil = -1; break; // mute forever
+1 -1
View File
@@ -60,7 +60,7 @@
<string-array name="mute_durations">
<item>@string/mute_for_one_hour</item>
<item>@string/mute_for_two_hours</item>
<item>@string/mute_for_eight_hours</item>
<item>@string/mute_for_one_day</item>
<item>@string/mute_for_seven_days</item>
<item>@string/mute_forever</item>
+2
View File
@@ -332,7 +332,9 @@
<string name="donate">Donate</string>
<string name="mute_for_one_hour">Mute for 1 hour</string>
<!-- deprecated -->
<string name="mute_for_two_hours">Mute for 2 hours</string>
<string name="mute_for_eight_hours">Mute for 8 hours</string>
<string name="mute_for_one_day">Mute for 1 day</string>
<string name="mute_for_seven_days">Mute for 7 days</string>
<string name="mute_forever">Mute forever</string>