update screener card

This commit is contained in:
2026-06-19 16:06:30 +07:00
parent b1cb8b0fea
commit 19bce35fd4
6 changed files with 114 additions and 26 deletions

View File

@@ -992,8 +992,11 @@ class Nostr {
suspend fun verifyContact(pubkey: PublicKey): Boolean {
try {
val currentUser =
signer.getPublicKeyAsync() ?: throw IllegalStateException("User not signed in")
val kind = Kind.fromStd(KindStandard.CONTACT_LIST)
val filter = Filter().kind(kind).author(pubkey).limit(1u)
val filter = Filter().kind(kind).author(currentUser).limit(1u)
val events = client?.database()?.query(filter)
val pubkeys = events?.first()?.tags()?.publicKeys() ?: listOf()