From e0b667fd2d499e749131cf907c2f32fffa77ae2a Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 16 Aug 2024 09:41:38 -0400 Subject: [PATCH] Fixes order for the notification feed after refactoring --- .../ui/screen/loggedIn/notifications/CardFeedContentState.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt index 9a164718bd..917d53319a 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt @@ -113,7 +113,6 @@ class CardFeedContentState( (oldNotesState.feed.value + newCards) .distinctBy { it.id() } .sortedWith(DefaultFeedOrderCard) - .reversed() .take(localFilter.limit()) .toImmutableList() @@ -128,7 +127,6 @@ class CardFeedContentState( val cards = convertToCard(notes) .sortedWith(DefaultFeedOrderCard) - .reversed() .take(localFilter.limit()) .toImmutableList()