From 1833248c96a1e68c9ee108800664f2077136f085 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Fri, 22 Aug 2025 09:44:54 -0300 Subject: [PATCH] Don't bother with the empty item if we are on the new calling UI. --- .../securesms/components/webrtc/CallParticipantsState.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt index 9c3554b16b..a0d6db1ac8 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt @@ -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()