From 27bb0c561110b6bec80b47666f6d4c64c84e3a05 Mon Sep 17 00:00:00 2001 From: Brandon McAnsh Date: Tue, 16 Jun 2026 12:54:46 -0400 Subject: [PATCH] chore(contacts): add unknown contact indicator to contact row Signed-off-by: Brandon McAnsh --- .../internal/screens/ContactListScreen.kt | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/apps/flipcash/features/direct-send/src/main/kotlin/com/flipcash/app/directsend/internal/screens/ContactListScreen.kt b/apps/flipcash/features/direct-send/src/main/kotlin/com/flipcash/app/directsend/internal/screens/ContactListScreen.kt index 95338feb1..94aab0dbb 100644 --- a/apps/flipcash/features/direct-send/src/main/kotlin/com/flipcash/app/directsend/internal/screens/ContactListScreen.kt +++ b/apps/flipcash/features/direct-send/src/main/kotlin/com/flipcash/app/directsend/internal/screens/ContactListScreen.kt @@ -324,11 +324,26 @@ private fun ContactRowItem( } Column(modifier = Modifier.weight(1f)) { - Text( - text = contact.displayName, - style = CodeTheme.typography.textMedium, - color = CodeTheme.colors.textMain, - ) + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(CodeTheme.dimens.grid.x1), + ) { + Text( + modifier = Modifier.weight(1f, fill = false), + text = contact.displayName, + style = CodeTheme.typography.textMedium, + color = CodeTheme.colors.textMain, + ) + if (contact.isUnknown) { + Icon( + modifier = Modifier.size(CodeTheme.dimens.staticGrid.x3), + painter = painterResource(R.drawable.ic_unknown_contact), + contentDescription = null, + tint = CodeTheme.colors.textMain, + ) + } + } + Text( text = if (isOnFlipcash && !lastMessagePreview.isNullOrEmpty()) { lastMessagePreview