Goes back to considering the full list of results when assessing changes to the visible items.

This commit is contained in:
Vitor Pamplona 2023-02-18 19:15:24 -05:00
parent 666972fd62
commit b8cb6295f4

View File

@ -60,7 +60,7 @@ abstract class FeedViewModel(val localFilter: FeedFilter<Note>): ViewModel() {
val oldNotesState = feedContent.value
if (oldNotesState is FeedState.Loaded) {
// Using size as a proxy for has changed.
if (notes.size != oldNotesState.feed.value.size || notes.firstOrNull() != oldNotesState.feed.value.firstOrNull()) {
if (notes != oldNotesState.feed.value) {
updateFeed(notes)
}
} else {