diff --git a/changelog.d/4636.bugfix b/changelog.d/4636.bugfix new file mode 100644 index 0000000000..ec95696a4f --- /dev/null +++ b/changelog.d/4636.bugfix @@ -0,0 +1 @@ +Update log warning for call selection during voip calls. \ No newline at end of file diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/call/model/MxCallImpl.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/call/model/MxCallImpl.kt index cda513e9d2..a89713870a 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/call/model/MxCallImpl.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/call/model/MxCallImpl.kt @@ -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 != CallState.Dialing && state !is CallState.Connected) { + Timber.tag(loggerTag.value).w("Expected state is CallState.Dialing or CallState.Connected got $state.") } CallSelectAnswerContent( callId = callId,