feat: Implement user search functionality with ViewModel and results display

This commit is contained in:
k1ngsterr1
2026-01-10 19:10:43 +05:00
parent b4c740b1ba
commit fa634936f5
5 changed files with 508 additions and 43 deletions

View File

@@ -212,12 +212,14 @@ fun MainScreen(
"+${it.take(1)} ${it.substring(1, 4)} ${it.substring(4, 7)}${it.substring(7)}"
} ?: "+7 775 9932587"
val accountPublicKey = account?.publicKey ?: "04c266b98ae5"
val privateKeyHash = account?.privateKeyHash ?: ""
ChatsListScreen(
isDarkTheme = isDarkTheme,
accountName = accountName,
accountPhone = accountPhone,
accountPublicKey = accountPublicKey,
privateKeyHash = privateKeyHash,
onToggleTheme = onToggleTheme,
onProfileClick = {
// TODO: Navigate to profile
@@ -246,6 +248,10 @@ fun MainScreen(
onNewChat = {
// TODO: Show new chat screen
},
onUserSelect = { user ->
// TODO: Navigate to chat with selected user
android.util.Log.d("MainScreen", "User selected: ${user.publicKey}")
},
onLogout = onLogout
)
}