mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Fix wrong mute durations
This bug exists for 9 months. It's seconds, not ms.
This commit is contained in:
parent
ac60890c9a
commit
c16532d4c2
1 changed files with 14 additions and 14 deletions
|
@ -35,24 +35,24 @@ import Modal from './modal';
|
||||||
import TranslationBlock from './translation-block';
|
import TranslationBlock from './translation-block';
|
||||||
|
|
||||||
const MUTE_DURATIONS = [
|
const MUTE_DURATIONS = [
|
||||||
1000 * 60 * 5, // 5 minutes
|
60 * 5, // 5 minutes
|
||||||
1000 * 60 * 30, // 30 minutes
|
60 * 30, // 30 minutes
|
||||||
1000 * 60 * 60, // 1 hour
|
60 * 60, // 1 hour
|
||||||
1000 * 60 * 60 * 6, // 6 hours
|
60 * 60 * 6, // 6 hours
|
||||||
1000 * 60 * 60 * 24, // 1 day
|
60 * 60 * 24, // 1 day
|
||||||
1000 * 60 * 60 * 24 * 3, // 3 days
|
60 * 60 * 24 * 3, // 3 days
|
||||||
1000 * 60 * 60 * 24 * 7, // 1 week
|
60 * 60 * 24 * 7, // 1 week
|
||||||
0, // forever
|
0, // forever
|
||||||
];
|
];
|
||||||
const MUTE_DURATIONS_LABELS = {
|
const MUTE_DURATIONS_LABELS = {
|
||||||
0: 'Forever',
|
0: 'Forever',
|
||||||
300_000: '5 minutes',
|
300: '5 minutes',
|
||||||
1_800_000: '30 minutes',
|
1_800: '30 minutes',
|
||||||
3_600_000: '1 hour',
|
3_600: '1 hour',
|
||||||
21_600_000: '6 hours',
|
21_600: '6 hours',
|
||||||
86_400_000: '1 day',
|
86_400: '1 day',
|
||||||
259_200_000: '3 days',
|
259_200: '3 days',
|
||||||
604_800_000: '1 week',
|
604_800: '1 week',
|
||||||
};
|
};
|
||||||
|
|
||||||
const LIMIT = 80;
|
const LIMIT = 80;
|
||||||
|
|
Loading…
Reference in a new issue