mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-53363 - Calls default sound should be Calm (#23876)
This commit is contained in:
committed by
GitHub
parent
e84eb900ff
commit
3f99b7618d
@@ -73,7 +73,7 @@ function getNotificationsStateFromProps(props: Props): State {
|
|||||||
let sound: UserNotifyProps['desktop_sound'] = 'true';
|
let sound: UserNotifyProps['desktop_sound'] = 'true';
|
||||||
let callsSound: UserNotifyProps['calls_desktop_sound'] = 'true';
|
let callsSound: UserNotifyProps['calls_desktop_sound'] = 'true';
|
||||||
let desktopNotificationSound: UserNotifyProps['desktop_notification_sound'] = 'Bing';
|
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 comments: UserNotifyProps['comments'] = 'never';
|
||||||
let enableEmail: UserNotifyProps['email'] = 'true';
|
let enableEmail: UserNotifyProps['email'] = 'true';
|
||||||
let pushActivity: UserNotifyProps['push'] = NotificationLevels.MENTION;
|
let pushActivity: UserNotifyProps['push'] = NotificationLevels.MENTION;
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ export function stopTryNotificationRing() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function loopNotificationRing(name: string) {
|
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.loop = true;
|
||||||
audio.play();
|
audio.play();
|
||||||
return audio;
|
return audio;
|
||||||
|
|||||||
Reference in New Issue
Block a user