fix: filter logged-in user from incoming video call display

Remove the current user's picture and name from the incoming call
screen so only the other participants are shown.

https://claude.ai/code/session_01F4LLE1PZ84oNURN8RQwNuc
This commit is contained in:
Claude
2026-04-03 14:20:47 +00:00
parent 090da72d35
commit 6b6adf81f2
@@ -145,8 +145,12 @@ fun CallScreen(
}
is CallState.IncomingCall -> {
val otherMembers =
remember(state.groupMembers) {
state.groupMembers - accountViewModel.account.signer.pubKey
}
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 {
val isVideoCall = state.callType == com.vitorpamplona.quartz.nipACWebRtcCalls.tags.CallType.VIDEO
val acceptWithPermission =
@@ -154,7 +158,7 @@ fun CallScreen(
callController?.acceptIncomingCall(state.sdpOffer)
}
IncomingCallUI(
groupMembers = state.groupMembers,
groupMembers = otherMembers,
callType = state.callType,
accountViewModel = accountViewModel,
onAccept = acceptWithPermission,