From 38827a4db67eec457a304d474eae64c61a4fe6bc Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 14 Aug 2025 16:20:53 -0400 Subject: [PATCH] Uses relays where the event was seen as a source of reactions and replies --- .../main/java/com/vitorpamplona/amethyst/model/Note.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Note.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Note.kt index 4fe1c0b60..883dcb8ca 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Note.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Note.kt @@ -189,15 +189,15 @@ open class Note( } fun relayUrls(): List { - val authorRelay = author?.relayHints()?.ifEmpty { null } + val authorRelay = author?.relayHints() ?: emptyList() - return authorRelay ?: relays + return authorRelay + relays } fun relayUrlsForReactions(): List { - val authorRelay = author?.inboxRelays()?.ifEmpty { null } + val authorRelay = author?.inboxRelays() ?: emptyList() - return authorRelay ?: relays + return authorRelay + relays } fun relayHintUrl(): NormalizedRelayUrl? {