fix: remove duplicate private chat info card
Some checks failed
Android CI / android (push) Failing after 5m56s
Android Release / release (push) Failing after 4m54s
CI / test (push) Has started running

- stop rendering the extra private info card inside chat history

- keep private chat identity details in the top bar and info sheet only
This commit is contained in:
2026-04-05 23:19:15 +03:00
parent f12e8067b8
commit b7bce26697

View File

@@ -659,7 +659,6 @@ private fun ChatScreen(
state.isCounterpartRelationshipResolved &&
!state.isCounterpartContact &&
!state.isCounterpartBlocked
val showPrivateInfoCard = isPrivateChat && state.counterpartUserId != null && !isTabletLayout
val canShowMembersTab = state.chatType.equals("group", ignoreCase = true) ||
(state.chatType.equals("channel", ignoreCase = true) && state.canManageMembers)
val timelineItems = remember(state.messages, context) { buildChatTimelineItems(state.messages, context) }
@@ -1212,26 +1211,6 @@ private fun ChatScreen(
}
}
}
AnimatedVisibility(
visible = showPrivateInfoCard,
enter = fadeIn(animationSpec = tween(180)) + slideInVertically(
initialOffsetY = { -it / 4 },
animationSpec = tween(180),
),
exit = fadeOut(animationSpec = tween(120)) + slideOutVertically(
targetOffsetY = { -it / 4 },
animationSpec = tween(120),
),
) {
PrivateChatInfoCard(
title = state.counterpartName?.takeIf { it.isNotBlank() } ?: state.chatTitle,
username = state.counterpartUsername,
avatarUrl = state.chatAvatarUrl,
statusText = state.baseChatSubtitle.takeIf { it.isNotBlank() },
isContact = state.isCounterpartContact,
isBlocked = state.isCounterpartBlocked,
)
}
val strip = topAudioStrip
if (strip != null) {
Row(