mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Drop the comments from the empty DM call guard
Review feedback: the member-count condition reads on its own.
This commit is contained in:
-5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user