add verify contact steps

This commit is contained in:
2026-06-18 09:47:05 +07:00
parent 31a20122d3
commit 7a31749b4f
3 changed files with 86 additions and 1 deletions

View File

@@ -85,6 +85,8 @@ fun ProfileScreen(pubkey: String, screening: Boolean = false) {
var addressVerified by remember { mutableStateOf(false) }
var lastActivity by remember { mutableStateOf<Timestamp?>(null) }
var isContact by remember { mutableStateOf(false) }
var mutualContacts by remember { mutableStateOf<Set<PublicKey>>(emptySet()) }
LaunchedEffect(screening) {
if (screening) {
@@ -95,6 +97,10 @@ fun ProfileScreen(pubkey: String, screening: Boolean = false) {
}
// Get the last activity
viewModel.verifyActivity(pubkey)?.let { lastActivity = it }
// Check contact
viewModel.verifyContact(pubkey).let { isContact = it }
// Get mutual contacts
viewModel.mutualContacts(pubkey).let { mutualContacts = it }
}
}
}