Makes sure the relay list contains unique urls.
This commit is contained in:
@@ -129,6 +129,7 @@ class NewRelayListViewModel : ViewModel() {
|
|||||||
localInfoFeedTypes,
|
localInfoFeedTypes,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
.distinctBy { it.url }
|
||||||
.sortedBy { it.downloadCountInBytes }
|
.sortedBy { it.downloadCountInBytes }
|
||||||
.reversed()
|
.reversed()
|
||||||
} else {
|
} else {
|
||||||
@@ -152,6 +153,7 @@ class NewRelayListViewModel : ViewModel() {
|
|||||||
it.feedTypes,
|
it.feedTypes,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
.distinctBy { it.url }
|
||||||
.sortedBy { it.downloadCountInBytes }
|
.sortedBy { it.downloadCountInBytes }
|
||||||
.reversed()
|
.reversed()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user