Keep guard pattern
This commit is contained in:
parent
bf8b485e2c
commit
0cf50e88e9
@ -203,7 +203,9 @@ internal class MxCallImpl(
|
|||||||
|
|
||||||
override fun selectAnswer() {
|
override fun selectAnswer() {
|
||||||
Timber.tag(loggerTag.value).v("select answer $callId")
|
Timber.tag(loggerTag.value).v("select answer $callId")
|
||||||
if (isOutgoing) {
|
if (!isOutgoing) {
|
||||||
|
return
|
||||||
|
}
|
||||||
// This is an outgoing call, select the remote client that answered.
|
// This is an outgoing call, select the remote client that answered.
|
||||||
// state is still DIALING.
|
// state is still DIALING.
|
||||||
CallSelectAnswerContent(
|
CallSelectAnswerContent(
|
||||||
@ -215,7 +217,6 @@ internal class MxCallImpl(
|
|||||||
.let { createEventAndLocalEcho(type = EventType.CALL_SELECT_ANSWER, roomId = roomId, content = it.toContent()) }
|
.let { createEventAndLocalEcho(type = EventType.CALL_SELECT_ANSWER, roomId = roomId, content = it.toContent()) }
|
||||||
.also { eventSenderProcessor.postEvent(it) }
|
.also { eventSenderProcessor.postEvent(it) }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
override suspend fun transfer(targetUserId: String,
|
override suspend fun transfer(targetUserId: String,
|
||||||
targetRoomId: String?,
|
targetRoomId: String?,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user