mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-06-14 23:00:53 +02:00
Correctly gets the Global Relays being used.
This commit is contained in:
parent
7cfad373f2
commit
2ac3b42d4d
@ -1616,8 +1616,8 @@ class Account(
|
|||||||
}.toTypedArray()
|
}.toTypedArray()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun convertGlobalRelays(): Array<String> {
|
fun activeGlobalRelays(): Array<String> {
|
||||||
return localRelays.filter { it.feedTypes.contains(FeedType.GLOBAL) }
|
return (activeRelays() ?: convertLocalRelays()).filter { it.activeTypes.contains(FeedType.GLOBAL) }
|
||||||
.map { it.url }
|
.map { it.url }
|
||||||
.toTypedArray()
|
.toTypedArray()
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class HomeNewThreadFeedFilter(val account: Account) : AdditiveFeedFilter<Note>()
|
|||||||
|
|
||||||
private fun innerApplyFilter(collection: Collection<Note>, ignoreAddressables: Boolean): Set<Note> {
|
private fun innerApplyFilter(collection: Collection<Note>, ignoreAddressables: Boolean): Set<Note> {
|
||||||
val isGlobal = account.defaultHomeFollowList == GLOBAL_FOLLOWS
|
val isGlobal = account.defaultHomeFollowList == GLOBAL_FOLLOWS
|
||||||
val gRelays = account.convertGlobalRelays()
|
val gRelays = account.activeGlobalRelays()
|
||||||
val isHiddenList = showHiddenKey()
|
val isHiddenList = showHiddenKey()
|
||||||
|
|
||||||
val followingKeySet = account.selectedUsersFollowList(account.defaultHomeFollowList) ?: emptySet()
|
val followingKeySet = account.selectedUsersFollowList(account.defaultHomeFollowList) ?: emptySet()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user