Merge pull request #2100 from vitorpamplona/claude/fix-call-ui-dark-mode-3Unot

Fix call UI to exclude current user from peer list
This commit is contained in:
Vitor Pamplona
2026-04-03 11:19:49 -04:00
committed by GitHub
@@ -168,11 +168,15 @@ fun CallScreen(
}
is CallState.Connecting -> {
val otherMembers =
remember(state.peerPubKeys) {
state.peerPubKeys - accountViewModel.account.signer.pubKey
}
if (isInPipMode) {
PipCallUI(peerPubKeys = state.peerPubKeys, statusText = stringRes(R.string.call_connecting), accountViewModel = accountViewModel)
PipCallUI(peerPubKeys = otherMembers, statusText = stringRes(R.string.call_connecting), accountViewModel = accountViewModel)
} else {
CallInProgressUI(
peerPubKeys = state.peerPubKeys,
peerPubKeys = otherMembers,
statusText = stringRes(R.string.call_connecting),
accountViewModel = accountViewModel,
onHangup = { scope.launch { callManager.hangup() } },
@@ -892,7 +896,7 @@ private fun GroupCallPictures(
private fun GroupCallNames(
peerPubKeys: Set<String>,
accountViewModel: AccountViewModel,
textColor: Color = Color.Unspecified,
textColor: Color = MaterialTheme.colorScheme.onSurface,
) {
val userList = remember(peerPubKeys) { peerPubKeys.toList() }