Solves crashing when multiple relays with the same url are included in the resulting list.

This commit is contained in:
Vitor Pamplona
2026-03-28 18:30:21 -04:00
parent c596e16182
commit 23dcda55d3
@@ -233,8 +233,10 @@ class SearchBarViewModel(
val lower = term.lowercase()
val relays =
listOfNotNull(relayUrl) +
LocalCache.relayHints.relayDB.filter { _, relay -> relay.url.contains(lower) }
(
listOfNotNull(relayUrl) +
LocalCache.relayHints.relayDB.filter { _, relay -> relay.url.contains(lower) }
).distinctBy { it.url }
relays
.map { relaySetupInfoBuilder(it) }