MM-52805 - Calls: Add calls ringing & settings panel option (#23444)

* add calls sounds; add calls options to settings panel

* i18n

* fix types; tests

* tests

* expose notificationSounds to plugins

* fix bad version reference

* the real fix

* turn off any currentRing if new ring is requested

* refactor isCallsEnabled into a selector

* fix version fallback

* remove unused vars

* merge conflicts

* stop notification rings on exits

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Christopher Poile
2023-06-14 10:57:37 -04:00
коммит произвёл GitHub
родитель 79abeb6382
Коммит c06c47f22e
39 изменённых файлов: 838 добавлений и 14 удалений

Просмотреть файл

@@ -11,6 +11,7 @@ import {IDMappedObjects, RelationOneToMany, RelationOneToManyUnique, RelationOne
export type UserNotifyProps = {
desktop: 'default' | 'all' | 'mention' | 'none';
desktop_sound: 'true' | 'false';
calls_desktop_sound: 'true' | 'false';
email: 'true' | 'false';
mark_unread: 'all' | 'mention';
push: 'default' | 'all' | 'mention' | 'none';
@@ -20,6 +21,7 @@ export type UserNotifyProps = {
channel: 'true' | 'false';
mention_keys: string;
desktop_notification_sound?: 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
calls_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful';
desktop_threads?: 'default' | 'all' | 'mention' | 'none';
email_threads?: 'default' | 'all' | 'mention' | 'none';
push_threads?: 'default' | 'all' | 'mention' | 'none';