Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/strong-trains-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/ui-voip": patch
---

Fixes incoming VoIP calls playing "dial" sound when answered
7 changes: 6 additions & 1 deletion packages/ui-voip/src/providers/VoipProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
Loading