You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Reformat some code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -201,9 +201,11 @@ export class CallEventHandler {
|
|||||||
// we've got an invite, pick the incoming call because we know
|
// we've got an invite, pick the incoming call because we know
|
||||||
// we haven't sent our invite yet otherwise, pick whichever
|
// we haven't sent our invite yet otherwise, pick whichever
|
||||||
// call has the lowest call ID (by string comparison)
|
// call has the lowest call ID (by string comparison)
|
||||||
if (existingCall.state === CallState.WaitLocalMedia ||
|
if (
|
||||||
|
existingCall.state === CallState.WaitLocalMedia ||
|
||||||
existingCall.state === CallState.CreateOffer ||
|
existingCall.state === CallState.CreateOffer ||
|
||||||
existingCall.callId > call.callId) {
|
existingCall.callId > call.callId
|
||||||
|
) {
|
||||||
logger.log(
|
logger.log(
|
||||||
"Glare detected: answering incoming call " + call.callId +
|
"Glare detected: answering incoming call " + call.callId +
|
||||||
" and canceling outgoing call " + existingCall.callId,
|
" and canceling outgoing call " + existingCall.callId,
|
||||||
|
|||||||
Reference in New Issue
Block a user