From de7180ef7e7d62167506a1d6dc8b08470a916dab Mon Sep 17 00:00:00 2001 From: David Langley Date: Fri, 3 Dec 2021 11:30:28 +0000 Subject: [PATCH] And remove braces --- .../android/sdk/internal/session/call/model/MxCallImpl.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 5322dfc576..ce6583edf2 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 @@ -203,9 +203,8 @@ internal class MxCallImpl( override fun selectAnswer() { Timber.tag(loggerTag.value).v("select answer $callId") - if (!isOutgoing) { - return - } + if (!isOutgoing) return + // This is an outgoing call, select the remote client that answered. // state is still DIALING. CallSelectAnswerContent(