Don't bother with the empty item if we are on the new calling UI.

This commit is contained in:
Alex Hart
2025-08-22 09:44:54 -03:00
committed by Michelle Tang
parent f5b1857866
commit 1833248c96

View File

@@ -14,6 +14,7 @@ import org.thoughtcrime.securesms.events.GroupCallRaiseHandEvent
import org.thoughtcrime.securesms.events.GroupCallReactionEvent
import org.thoughtcrime.securesms.events.WebRtcViewModel
import org.thoughtcrime.securesms.groups.ui.GroupMemberEntry
import org.thoughtcrime.securesms.keyvalue.SignalStore
import org.thoughtcrime.securesms.recipients.Recipient
import org.thoughtcrime.securesms.ringrtc.CameraState
import org.thoughtcrime.securesms.service.webrtc.collections.ParticipantCollection
@@ -78,7 +79,7 @@ data class CallParticipantsState(
} else {
listParticipants.addAll(remoteParticipants.listParticipants)
}
if (foldableState.isFlat) {
if (foldableState.isFlat && !SignalStore.internal.newCallingUi) {
listParticipants.add(CallParticipant.EMPTY)
}
listParticipants.reverse()