Skip to content

Commit

Permalink
Merge pull request #737 from wazo-platform/WDA-2282-fix-mute-state-wh…
Browse files Browse the repository at this point in the history
…en-resuming

[WDA-2282] Fix call session state when holding & resuming a previously muted call
  • Loading branch information
manuquentin authored Nov 20, 2023
2 parents 41335cc + 3e73ede commit a9666ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/domain/Phone/WebRTCPhone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,10 @@ export default class WebRTCPhone extends Emitter implements Phone {
};

if (withEvent) {
// Calling webRtcClient.unhold will unmute the call; let's make sure the call session reflects that state
if (callSession) {
callSession.muted = false;
}
const updatedCallSession = this._createCallSession(sipSession, callSession);

// Deprecated event
Expand Down

0 comments on commit a9666ad

Please sign in to comment.