Adds the user outbox relays when loading addressables by that user.

This commit is contained in:
Vitor Pamplona
2025-10-21 20:09:13 -04:00
parent 17618ac361
commit db1d5c7e82

View File

@@ -32,6 +32,10 @@ import com.vitorpamplona.quartz.utils.mapOfSet
fun potentialRelaysToFindAddress(note: AddressableNote): Set<NormalizedRelayUrl> { fun potentialRelaysToFindAddress(note: AddressableNote): Set<NormalizedRelayUrl> {
val set = mutableSetOf<NormalizedRelayUrl>() val set = mutableSetOf<NormalizedRelayUrl>()
LocalCache.getOrCreateUser(note.address.pubKeyHex).outboxRelays()?.let {
set.addAll(it)
}
set.addAll(LocalCache.relayHints.hintsForAddress(note.idHex)) set.addAll(LocalCache.relayHints.hintsForAddress(note.idHex))
LocalCache.getAnyChannel(note)?.relays()?.let { set.addAll(it) } LocalCache.getAnyChannel(note)?.relays()?.let { set.addAll(it) }