From 7f56c15fb811ca4a50b449fbe57122b79385e262 Mon Sep 17 00:00:00 2001 From: hayaksi1 <193020925+hayaksi1@users.noreply.github.com> Date: Sun, 9 Aug 2026 15:33:51 +0300 Subject: [PATCH] Drop the comments from the empty DM call guard Review feedback: the member-count condition reads on its own. --- .../android/features/roomcall/impl/RoomCallStatePresenter.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/features/roomcall/impl/src/main/kotlin/io/element/android/features/roomcall/impl/RoomCallStatePresenter.kt b/features/roomcall/impl/src/main/kotlin/io/element/android/features/roomcall/impl/RoomCallStatePresenter.kt index f57a94bf1e..7763933a29 100644 --- a/features/roomcall/impl/src/main/kotlin/io/element/android/features/roomcall/impl/RoomCallStatePresenter.kt +++ b/features/roomcall/impl/src/main/kotlin/io/element/android/features/roomcall/impl/RoomCallStatePresenter.kt @@ -61,11 +61,6 @@ class RoomCallStatePresenter( isAudioCall = roomInfo.activeCallIntentConsensus.isAudio(), ) else -> { - // Nobody would ever join a call started in a DM whose other member has left, - // and the call screen has no way out of that state. - // activeMembersCount counts joined and invited members, so a DM whose peer - // has been invited but has not joined yet can still start a call. - // See https://github.com/element-hq/element-x-android/issues/6189 val isEmptyDm = roomInfo.isDm && roomInfo.activeMembersCount <= 1 RoomCallState.StandBy( canStartCall = canJoinCall && !isEmptyDm,