mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 15:27:24 +01:00
Adds the user outbox relays when loading addressables by that user.
This commit is contained in:
@@ -32,6 +32,10 @@ import com.vitorpamplona.quartz.utils.mapOfSet
|
||||
fun potentialRelaysToFindAddress(note: AddressableNote): Set<NormalizedRelayUrl> {
|
||||
val set = mutableSetOf<NormalizedRelayUrl>()
|
||||
|
||||
LocalCache.getOrCreateUser(note.address.pubKeyHex).outboxRelays()?.let {
|
||||
set.addAll(it)
|
||||
}
|
||||
|
||||
set.addAll(LocalCache.relayHints.hintsForAddress(note.idHex))
|
||||
|
||||
LocalCache.getAnyChannel(note)?.relays()?.let { set.addAll(it) }
|
||||
|
||||
Reference in New Issue
Block a user