From 1001da65d5d6245f85340b23ab568d7c0f9c19e8 Mon Sep 17 00:00:00 2001 From: Aleksander Nicacio da Silva Date: Wed, 19 Mar 2025 21:09:06 -0300 Subject: [PATCH] fix: Omnichannel continuous sound notification not being played (#35480) --- .changeset/perfect-oranges-judge.md | 5 +++++ .../hooks/useOmnichannelContinuousSoundNotification.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/perfect-oranges-judge.md diff --git a/.changeset/perfect-oranges-judge.md b/.changeset/perfect-oranges-judge.md new file mode 100644 index 00000000000..0edb98b30ae --- /dev/null +++ b/.changeset/perfect-oranges-judge.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/meteor": patch +--- + +Fixes Omnichannel's continuous sound notification not playing as expected diff --git a/apps/meteor/client/hooks/useOmnichannelContinuousSoundNotification.ts b/apps/meteor/client/hooks/useOmnichannelContinuousSoundNotification.ts index bcfdf40ae0b..639b4cb7af2 100644 --- a/apps/meteor/client/hooks/useOmnichannelContinuousSoundNotification.ts +++ b/apps/meteor/client/hooks/useOmnichannelContinuousSoundNotification.ts @@ -47,7 +47,7 @@ export const useOmnichannelContinuousSoundNotification = (queue: T[]) => { } CustomSounds.play(continuousCustomSoundId, { - volume: notificationsSoundVolume, + volume: notificationsSoundVolume / 100, loop: true, }); }, [continuousCustomSoundId, playNewRoomSoundContinuously, userSubscriptions, notificationsSoundVolume, hasUnreadRoom]);