Sync mute state

This commit is contained in:
Josh Perez 2021-04-09 09:19:38 -07:00 committed by GitHub
parent 15247e1c9a
commit 6c0acd09df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 236 additions and 61 deletions

View file

@ -16,6 +16,10 @@ export function getMuteOptions(i18n: LocalizerType): Array<MuteOption> {
name: i18n('muteHour'),
value: moment.duration(1, 'hour').as('milliseconds'),
},
{
name: i18n('muteEightHours'),
value: moment.duration(8, 'hour').as('milliseconds'),
},
{
name: i18n('muteDay'),
value: moment.duration(1, 'day').as('milliseconds'),
@ -25,8 +29,8 @@ export function getMuteOptions(i18n: LocalizerType): Array<MuteOption> {
value: moment.duration(1, 'week').as('milliseconds'),
},
{
name: i18n('muteYear'),
value: moment.duration(1, 'year').as('milliseconds'),
name: i18n('muteAlways'),
value: Number.MAX_SAFE_INTEGER,
},
];
}