Removing duplicated ID protections from Notifications. Looks like we removed all the issues here.
This commit is contained in:
@@ -95,7 +95,6 @@ open class CardFeedViewModel(val localFilter: FeedFilter<Note>) : ViewModel() {
|
|||||||
lastAccount = (localFilter as? NotificationFeedFilter)?.account
|
lastAccount = (localFilter as? NotificationFeedFilter)?.account
|
||||||
|
|
||||||
val updatedCards = (oldNotesState.feed.value + newCards)
|
val updatedCards = (oldNotesState.feed.value + newCards)
|
||||||
.distinctBy { it.id() }
|
|
||||||
.sortedWith(compareBy({ it.createdAt() }, { it.id() }))
|
.sortedWith(compareBy({ it.createdAt() }, { it.id() }))
|
||||||
.reversed()
|
.reversed()
|
||||||
.take(1000)
|
.take(1000)
|
||||||
@@ -252,7 +251,6 @@ open class CardFeedViewModel(val localFilter: FeedFilter<Note>) : ViewModel() {
|
|||||||
lastAccount = (localFilter as? NotificationFeedFilter)?.account
|
lastAccount = (localFilter as? NotificationFeedFilter)?.account
|
||||||
|
|
||||||
val updatedCards = (oldNotesState.feed.value + newCards)
|
val updatedCards = (oldNotesState.feed.value + newCards)
|
||||||
.distinctBy { it.id() }
|
|
||||||
.sortedWith(compareBy({ it.createdAt() }, { it.id() }))
|
.sortedWith(compareBy({ it.createdAt() }, { it.id() }))
|
||||||
.reversed()
|
.reversed()
|
||||||
.take(1000)
|
.take(1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user