Fixing the inclusion of search relays
This commit is contained in:
@@ -71,7 +71,9 @@ class NewRelayListViewModel : ViewModel() {
|
|||||||
if (relayFile != null) {
|
if (relayFile != null) {
|
||||||
relayFile.map {
|
relayFile.map {
|
||||||
val liveRelay = RelayPool.getRelay(it.key)
|
val liveRelay = RelayPool.getRelay(it.key)
|
||||||
val localInfoFeedTypes = account.localRelays.filter { localRelay -> localRelay.url == it.key }.firstOrNull()?.feedTypes ?: FeedType.values().toSet().toImmutableSet()
|
val localInfoFeedTypes = account.localRelays.filter { localRelay -> localRelay.url == it.key }.firstOrNull()?.feedTypes
|
||||||
|
?: Constants.defaultRelays.filter { defaultRelay -> defaultRelay.url == it.key }.firstOrNull()?.feedTypes
|
||||||
|
?: FeedType.values().toSet().toImmutableSet()
|
||||||
|
|
||||||
val errorCounter = liveRelay?.errorCounter ?: 0
|
val errorCounter = liveRelay?.errorCounter ?: 0
|
||||||
val eventDownloadCounter = liveRelay?.eventDownloadCounterInBytes ?: 0
|
val eventDownloadCounter = liveRelay?.eventDownloadCounterInBytes ?: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user