Merge pull request #2097 from vitorpamplona/claude/filter-video-call-display-uQAXE

Exclude current user from group call member displays
This commit is contained in:
Vitor Pamplona
2026-04-03 10:25:14 -04:00
committed by GitHub
@@ -145,8 +145,12 @@ fun CallScreen(
} }
is CallState.IncomingCall -> { is CallState.IncomingCall -> {
val otherMembers =
remember(state.groupMembers) {
state.groupMembers - accountViewModel.account.signer.pubKey
}
if (isInPipMode) { if (isInPipMode) {
PipCallUI(peerPubKeys = state.groupMembers, statusText = stringRes(R.string.call_incoming), accountViewModel = accountViewModel) PipCallUI(peerPubKeys = otherMembers, statusText = stringRes(R.string.call_incoming), accountViewModel = accountViewModel)
} else { } else {
val isVideoCall = state.callType == com.vitorpamplona.quartz.nipACWebRtcCalls.tags.CallType.VIDEO val isVideoCall = state.callType == com.vitorpamplona.quartz.nipACWebRtcCalls.tags.CallType.VIDEO
val acceptWithPermission = val acceptWithPermission =
@@ -154,7 +158,7 @@ fun CallScreen(
callController?.acceptIncomingCall(state.sdpOffer) callController?.acceptIncomingCall(state.sdpOffer)
} }
IncomingCallUI( IncomingCallUI(
groupMembers = state.groupMembers, groupMembers = otherMembers,
callType = state.callType, callType = state.callType,
accountViewModel = accountViewModel, accountViewModel = accountViewModel,
onAccept = acceptWithPermission, onAccept = acceptWithPermission,