Doesn't update if it returned the same reference for the list.
This commit is contained in:
@@ -98,7 +98,8 @@ abstract class FeedViewModel(val localFilter: FeedFilter<Note>) : ViewModel() {
|
|||||||
val oldNotesState = _feedContent.value
|
val oldNotesState = _feedContent.value
|
||||||
if (localFilter is AdditiveFeedFilter && oldNotesState is FeedState.Loaded) {
|
if (localFilter is AdditiveFeedFilter && oldNotesState is FeedState.Loaded) {
|
||||||
val newList = localFilter.updateListWith(oldNotesState.feed.value, newItems.toSet())
|
val newList = localFilter.updateListWith(oldNotesState.feed.value, newItems.toSet())
|
||||||
updateFeed(newList)
|
if (newList !== oldNotesState.feed.value)
|
||||||
|
updateFeed(newList)
|
||||||
} else {
|
} else {
|
||||||
// Refresh Everything
|
// Refresh Everything
|
||||||
refreshSuspended()
|
refreshSuspended()
|
||||||
|
|||||||
Reference in New Issue
Block a user