Removing duplicated ID protections from Notifications. Looks like we removed all the issues here.

This commit is contained in:
Vitor Pamplona
2023-06-08 17:47:10 -04:00
parent cb77298f52
commit d0094cc781
@@ -95,7 +95,6 @@ open class CardFeedViewModel(val localFilter: FeedFilter<Note>) : ViewModel() {
lastAccount = (localFilter as? NotificationFeedFilter)?.account
val updatedCards = (oldNotesState.feed.value + newCards)
.distinctBy { it.id() }
.sortedWith(compareBy({ it.createdAt() }, { it.id() }))
.reversed()
.take(1000)
@@ -252,7 +251,6 @@ open class CardFeedViewModel(val localFilter: FeedFilter<Note>) : ViewModel() {
lastAccount = (localFilter as? NotificationFeedFilter)?.account
val updatedCards = (oldNotesState.feed.value + newCards)
.distinctBy { it.id() }
.sortedWith(compareBy({ it.createdAt() }, { it.id() }))
.reversed()
.take(1000)