Prevent remove from call button from displaying in group calls.

Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
Alex Hart
2026-03-12 15:41:39 -03:00
committed by Michelle Tang
parent db17d1fd24
commit 889ebcadd4

View File

@@ -276,6 +276,7 @@ private fun CallInfo(
CallParticipantRow(
callParticipant = it,
isSelfAdmin = controlAndInfoState.isSelfAdmin() && !participantsState.inCallLobby,
isCallLink = controlAndInfoState.callLink != null,
onBlockClicked = onBlock,
onParticipantClicked = if (isInternalUser) {
{ participant ->
@@ -405,6 +406,7 @@ private fun HandRaisedRowPreview() {
private fun CallParticipantRow(
callParticipant: CallParticipant,
isSelfAdmin: Boolean,
isCallLink: Boolean = false,
onBlockClicked: (CallParticipant) -> Unit,
onParticipantClicked: ((CallParticipant) -> Unit)? = null
) {
@@ -417,6 +419,7 @@ private fun CallParticipantRow(
showHandRaised = false,
canLowerHand = false,
isSelfAdmin = isSelfAdmin,
isCallLink = isCallLink,
onBlockClicked = { onBlockClicked(callParticipant) },
onRowClicked = if (onParticipantClicked != null && !callParticipant.recipient.isSelf) {
{ onParticipantClicked(callParticipant) }
@@ -451,6 +454,7 @@ private fun CallParticipantRow(
showHandRaised: Boolean,
canLowerHand: Boolean,
isSelfAdmin: Boolean = false,
isCallLink: Boolean = false,
onBlockClicked: () -> Unit = {},
onRowClicked: (() -> Unit)? = null
) {
@@ -535,7 +539,7 @@ private fun CallParticipantRow(
)
}
if (showIcons && isSelfAdmin && !recipient.isSelf) {
if (showIcons && isSelfAdmin && isCallLink && !recipient.isSelf) {
if (!isMicrophoneEnabled) {
Spacer(modifier = Modifier.width(16.dp))
}