From 4fb629e8938eb3cc0627b5ae3e08deb62de9b7c9 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 9 Sep 2025 11:25:59 -0400 Subject: [PATCH] Fixes not sending the live stream events anywhere when the stream doesn't have a relay set declared. --- .../amethyst/model/nip53LiveActivities/LiveActivitiesChannel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip53LiveActivities/LiveActivitiesChannel.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip53LiveActivities/LiveActivitiesChannel.kt index d1ca69f69..34805ebfd 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip53LiveActivities/LiveActivitiesChannel.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip53LiveActivities/LiveActivitiesChannel.kt @@ -42,7 +42,7 @@ class LiveActivitiesChannel( fun address() = address - override fun relays() = info?.allRelayUrls()?.toSet() ?: super.relays() + override fun relays() = info?.allRelayUrls()?.toSet()?.ifEmpty { null } ?: super.relays() fun relayHintUrl() = relays().firstOrNull()