mirror of
https://github.com/RocketChat/Rocket.Chat.git
synced 2025-12-28 06:47:25 +00:00
fix: Incoming VoIP calls playing "dial" sound when answered (#36225)
This commit is contained in:
parent
689f6dfbaa
commit
93acfbe014
5
.changeset/strong-trains-serve.md
Normal file
5
.changeset/strong-trains-serve.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@rocket.chat/ui-voip": patch
|
||||
---
|
||||
|
||||
Fixes incoming VoIP calls playing "dial" sound when answered
|
||||
@ -69,7 +69,12 @@ const VoipProvider = ({ children }: { children: ReactNode }) => {
|
||||
};
|
||||
|
||||
const onOutgoingCallRinging = (): void => {
|
||||
voipSounds.playDialer();
|
||||
// VoipClient 'outgoingcall' event is emitted when the call is establishing
|
||||
// and that event is also emitted when the call is accepted
|
||||
// to avoid disrupting the VoipClient flow, we check if the call is outgoing here.
|
||||
if (voipClient.isOutgoing()) {
|
||||
voipSounds.playDialer();
|
||||
}
|
||||
};
|
||||
|
||||
const onIncomingCallRinging = (): void => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user