Removes broadcasting relays from the group of relays used to find events.
This commit is contained in:
@@ -303,7 +303,7 @@ class Account(
|
|||||||
|
|
||||||
// Follows Relays
|
// Follows Relays
|
||||||
val followOutboxesOrProxy = FollowListOutboxOrProxyRelays(kind3FollowList, blockedRelayList, proxyRelayList, cache, scope)
|
val followOutboxesOrProxy = FollowListOutboxOrProxyRelays(kind3FollowList, blockedRelayList, proxyRelayList, cache, scope)
|
||||||
val followPlusAllMine = MergedFollowPlusMineRelayListsState(followOutboxesOrProxy, nip65RelayList, privateStorageRelayList, localRelayList, broadcastRelayList, indexerRelayList, scope)
|
val followPlusAllMine = MergedFollowPlusMineRelayListsState(followOutboxesOrProxy, nip65RelayList, privateStorageRelayList, localRelayList, indexerRelayList, scope)
|
||||||
|
|
||||||
// keeps a cache of the outbox relays for each author
|
// keeps a cache of the outbox relays for each author
|
||||||
val followsPerRelay = FollowsPerOutboxRelay(kind3FollowList, blockedRelayList, proxyRelayList, cache, scope).flow
|
val followsPerRelay = FollowsPerOutboxRelay(kind3FollowList, blockedRelayList, proxyRelayList, cache, scope).flow
|
||||||
|
|||||||
-5
@@ -23,7 +23,6 @@ package com.vitorpamplona.amethyst.model.serverList
|
|||||||
import com.vitorpamplona.amethyst.model.edits.PrivateStorageRelayListState
|
import com.vitorpamplona.amethyst.model.edits.PrivateStorageRelayListState
|
||||||
import com.vitorpamplona.amethyst.model.localRelays.LocalRelayListState
|
import com.vitorpamplona.amethyst.model.localRelays.LocalRelayListState
|
||||||
import com.vitorpamplona.amethyst.model.nip02FollowLists.FollowListOutboxOrProxyRelays
|
import com.vitorpamplona.amethyst.model.nip02FollowLists.FollowListOutboxOrProxyRelays
|
||||||
import com.vitorpamplona.amethyst.model.nip51Lists.broadcastRelays.BroadcastRelayListState
|
|
||||||
import com.vitorpamplona.amethyst.model.nip51Lists.indexerRelays.IndexerRelayListState
|
import com.vitorpamplona.amethyst.model.nip51Lists.indexerRelays.IndexerRelayListState
|
||||||
import com.vitorpamplona.amethyst.model.nip65RelayList.Nip65RelayListState
|
import com.vitorpamplona.amethyst.model.nip65RelayList.Nip65RelayListState
|
||||||
import com.vitorpamplona.quartz.nip01Core.relay.normalizer.NormalizedRelayUrl
|
import com.vitorpamplona.quartz.nip01Core.relay.normalizer.NormalizedRelayUrl
|
||||||
@@ -41,7 +40,6 @@ class MergedFollowPlusMineRelayListsState(
|
|||||||
val nip65RelayList: Nip65RelayListState,
|
val nip65RelayList: Nip65RelayListState,
|
||||||
val privateOutboxRelayList: PrivateStorageRelayListState,
|
val privateOutboxRelayList: PrivateStorageRelayListState,
|
||||||
val localRelayList: LocalRelayListState,
|
val localRelayList: LocalRelayListState,
|
||||||
val broadcastRelayList: BroadcastRelayListState,
|
|
||||||
val indexerRelayList: IndexerRelayListState,
|
val indexerRelayList: IndexerRelayListState,
|
||||||
val scope: CoroutineScope,
|
val scope: CoroutineScope,
|
||||||
) {
|
) {
|
||||||
@@ -55,7 +53,6 @@ class MergedFollowPlusMineRelayListsState(
|
|||||||
nip65RelayList.inboxFlow,
|
nip65RelayList.inboxFlow,
|
||||||
privateOutboxRelayList.flow,
|
privateOutboxRelayList.flow,
|
||||||
localRelayList.flow,
|
localRelayList.flow,
|
||||||
broadcastRelayList.flow,
|
|
||||||
indexerRelayList.flow,
|
indexerRelayList.flow,
|
||||||
),
|
),
|
||||||
::mergeLists,
|
::mergeLists,
|
||||||
@@ -68,7 +65,6 @@ class MergedFollowPlusMineRelayListsState(
|
|||||||
nip65RelayList.inboxFlow.value,
|
nip65RelayList.inboxFlow.value,
|
||||||
privateOutboxRelayList.flow.value,
|
privateOutboxRelayList.flow.value,
|
||||||
localRelayList.flow.value,
|
localRelayList.flow.value,
|
||||||
broadcastRelayList.flow.value,
|
|
||||||
indexerRelayList.flow.value,
|
indexerRelayList.flow.value,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -84,7 +80,6 @@ class MergedFollowPlusMineRelayListsState(
|
|||||||
nip65RelayList.inboxFlow.value,
|
nip65RelayList.inboxFlow.value,
|
||||||
privateOutboxRelayList.flow.value,
|
privateOutboxRelayList.flow.value,
|
||||||
localRelayList.flow.value,
|
localRelayList.flow.value,
|
||||||
broadcastRelayList.flow.value,
|
|
||||||
indexerRelayList.flow.value,
|
indexerRelayList.flow.value,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user