mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
add mute option for 8 hours
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user