Drop the comments from the empty DM call guard

Review feedback: the member-count condition reads on its own.
This commit is contained in:
hayaksi1
2026-08-09 15:33:51 +03:00
parent 717efe46c5
commit 7f56c15fb8
@@ -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,