mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
select answer should be used for outgoing calls.
This commit is contained in:
parent
7c4460b812
commit
f3b3c880d0
1 changed files with 13 additions and 10 deletions
|
@ -203,16 +203,19 @@ 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) return
|
if (isOutgoing) {
|
||||||
state = CallState.Answering
|
// This is an outgoing call, select the remote client that answered.
|
||||||
CallSelectAnswerContent(
|
// state is still DIALING.
|
||||||
callId = callId,
|
CallSelectAnswerContent(
|
||||||
partyId = ourPartyId,
|
callId = callId,
|
||||||
selectedPartyId = opponentPartyId?.getOrNull(),
|
partyId = ourPartyId,
|
||||||
version = MxCall.VOIP_PROTO_VERSION.toString()
|
selectedPartyId = opponentPartyId?.getOrNull(),
|
||||||
)
|
version = MxCall.VOIP_PROTO_VERSION.toString()
|
||||||
.let { createEventAndLocalEcho(type = EventType.CALL_SELECT_ANSWER, roomId = roomId, content = it.toContent()) }
|
)
|
||||||
.also { eventSenderProcessor.postEvent(it) }
|
.let { createEventAndLocalEcho(type = EventType.CALL_SELECT_ANSWER, roomId = roomId, content = it.toContent()) }
|
||||||
|
.also { eventSenderProcessor.postEvent(it) }
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun transfer(targetUserId: String,
|
override suspend fun transfer(targetUserId: String,
|
||||||
|
|
Loading…
Reference in a new issue