Optimizing the performance of Highlight rendering

This commit is contained in:
Vitor Pamplona
2024-03-19 10:30:21 -04:00
parent e40cd8d932
commit 99270662ee
2 changed files with 16 additions and 23 deletions
@@ -34,13 +34,13 @@ class HighlightEvent(
content: String,
sig: HexKey,
) : BaseTextNoteEvent(id, pubKey, createdAt, KIND, tags, content, sig) {
fun inUrl() = taggedUrls().firstOrNull()
fun inUrl() = firstTaggedUrl()
fun author() = taggedUsers().firstOrNull()
fun author() = firstTaggedUser()
fun quote() = content
fun inPost() = taggedAddresses().firstOrNull()
fun inPost() = firstTaggedAddress()
companion object {
const val KIND = 9802