MM-53363 - Calls default sound should be Calm (#23876)

Этот коммит содержится в:
Christopher Poile
2023-06-27 09:20:26 -04:00
коммит произвёл GitHub
родитель e84eb900ff
Коммит 3f99b7618d
2 изменённых файлов: 2 добавлений и 2 удалений

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

@@ -73,7 +73,7 @@ function getNotificationsStateFromProps(props: Props): State {
let sound: UserNotifyProps['desktop_sound'] = 'true';
let callsSound: UserNotifyProps['calls_desktop_sound'] = 'true';
let desktopNotificationSound: UserNotifyProps['desktop_notification_sound'] = 'Bing';
let callsNotificationSound: UserNotifyProps['calls_notification_sound'] = 'Dynamic';
let callsNotificationSound: UserNotifyProps['calls_notification_sound'] = 'Calm';
let comments: UserNotifyProps['comments'] = 'never';
let enableEmail: UserNotifyProps['email'] = 'true';
let pushActivity: UserNotifyProps['push'] = NotificationLevels.MENTION;

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

@@ -97,7 +97,7 @@ export function stopTryNotificationRing() {
}
export function loopNotificationRing(name: string) {
const audio = new Audio(callsNotificationSounds.get(name) ?? callsNotificationSounds.get('Dynamic'));
const audio = new Audio(callsNotificationSounds.get(name) ?? callsNotificationSounds.get('Calm'));
audio.loop = true;
audio.play();
return audio;