state can also be connected

This commit is contained in:
David Langley 2021-12-06 13:05:37 +00:00
parent 767ead019a
commit a6d6fd7b3b

View file

@ -205,8 +205,8 @@ internal class MxCallImpl(
Timber.tag(loggerTag.value).v("select answer $callId")
if (!isOutgoing) return
// This is an outgoing call, select the remote client that answered.
if (state != CallState.Dialing) {
Timber.tag(loggerTag.value).w("Expected state is CallState.Dialing got $state.")
if (state is CallState.Dialing || state is CallState.Connected) {
Timber.tag(loggerTag.value).w("Expected state is CallState.Dialing or CallState.Connected got $state.")
}
CallSelectAnswerContent(
callId = callId,