Add warning if unexpected state.

This commit is contained in:
David Langley 2021-12-03 15:13:06 +00:00
parent cd7345aa6b
commit 767ead019a
1 changed files with 3 additions and 1 deletions

View File

@ -205,7 +205,9 @@ 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.
// state is still DIALING.
if (state != CallState.Dialing) {
Timber.tag(loggerTag.value).w("Expected state is CallState.Dialing got $state.")
}
CallSelectAnswerContent(
callId = callId,
partyId = ourPartyId,