You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-01 04:43:29 +03:00
Fix camera stuck on after call transfer (#2188)
The 'Replaced' error code is handled specially (for better or worse) so was leaving the capture feeds open. Use the 'transfer' hangup reason which is what we should be using anyway (and were, on the line below for the other call...)
This commit is contained in:
@@ -1943,7 +1943,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
|
|
||||||
await this.sendVoipEvent(EventType.CallReplaces, bodyToTransferee);
|
await this.sendVoipEvent(EventType.CallReplaces, bodyToTransferee);
|
||||||
|
|
||||||
await this.terminate(CallParty.Local, CallErrorCode.Replaced, true);
|
await this.terminate(CallParty.Local, CallErrorCode.Transfered, true);
|
||||||
await transferTargetCall.terminate(CallParty.Local, CallErrorCode.Transfered, true);
|
await transferTargetCall.terminate(CallParty.Local, CallErrorCode.Transfered, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user