Fixes not sending the live stream events anywhere when the stream doesn't have a relay set declared.

This commit is contained in:
Vitor Pamplona
2025-09-09 11:25:59 -04:00
parent 44a34ffcfe
commit 4fb629e893

View File

@@ -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()