Adds the about user proerty of Contact Card
This commit is contained in:
+2
@@ -45,6 +45,8 @@ class ContactCardEvent(
|
|||||||
content: String,
|
content: String,
|
||||||
sig: HexKey,
|
sig: HexKey,
|
||||||
) : PrivateTagArrayEvent(id, pubKey, createdAt, KIND, tags, content, sig) {
|
) : PrivateTagArrayEvent(id, pubKey, createdAt, KIND, tags, content, sig) {
|
||||||
|
fun aboutUser() = tags.dTag()
|
||||||
|
|
||||||
fun rank() = tags.firstNotNullOfOrNull(RankTag::parse)
|
fun rank() = tags.firstNotNullOfOrNull(RankTag::parse)
|
||||||
|
|
||||||
fun petName() = tags.firstNotNullOfOrNull(PetNameTag::parse)
|
fun petName() = tags.firstNotNullOfOrNull(PetNameTag::parse)
|
||||||
|
|||||||
Reference in New Issue
Block a user