Skip to content

Commit

Permalink
Makes sure the relay list contains unique urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jan 6, 2024
1 parent d269e9e commit 6e99e6f
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -129,6 +129,7 @@ class NewRelayListViewModel : ViewModel() {
localInfoFeedTypes,
)
}
.distinctBy { it.url }
.sortedBy { it.downloadCountInBytes }
.reversed()
} else {
Expand All @@ -152,6 +153,7 @@ class NewRelayListViewModel : ViewModel() {
it.feedTypes,
)
}
.distinctBy { it.url }
.sortedBy { it.downloadCountInBytes }
.reversed()
}
Expand Down

0 comments on commit 6e99e6f

Please sign in to comment.