mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 20:53:03 +02:00
Avoids lists with the same hexId because the app was pruning events while loading them
This commit is contained in:
@@ -236,7 +236,7 @@ abstract class FeedViewModel(val localFilter: FeedFilter<Note>) : ViewModel(), I
|
|||||||
checkNotInMainThread()
|
checkNotInMainThread()
|
||||||
|
|
||||||
lastFeedKey = localFilter.feedKey()
|
lastFeedKey = localFilter.feedKey()
|
||||||
val notes = localFilter.loadTop().toImmutableList()
|
val notes = localFilter.loadTop().distinctBy { it.idHex }.toImmutableList()
|
||||||
|
|
||||||
val oldNotesState = _feedContent.value
|
val oldNotesState = _feedContent.value
|
||||||
if (oldNotesState is FeedState.Loaded) {
|
if (oldNotesState is FeedState.Loaded) {
|
||||||
|
Reference in New Issue
Block a user