From ecbc2d30ca2417c92215bdae3e45145d65fb86ca Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Wed, 13 Jul 2022 13:29:56 -0300 Subject: [PATCH] Float onboarding story to top of the list. --- .../securesms/stories/landing/StoriesLandingItemData.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/stories/landing/StoriesLandingItemData.kt b/app/src/main/java/org/thoughtcrime/securesms/stories/landing/StoriesLandingItemData.kt index 829e128de4..cb628974ee 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/stories/landing/StoriesLandingItemData.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/stories/landing/StoriesLandingItemData.kt @@ -24,8 +24,8 @@ data class StoriesLandingItemData( return when { storyRecipient.isMyStory && !other.storyRecipient.isMyStory -> -1 !storyRecipient.isMyStory && other.storyRecipient.isMyStory -> 1 - storyRecipient.isReleaseNotes && !other.storyRecipient.isReleaseNotes -> 1 - !storyRecipient.isReleaseNotes && other.storyRecipient.isReleaseNotes -> -1 + storyRecipient.isReleaseNotes && !other.storyRecipient.isReleaseNotes -> -1 + !storyRecipient.isReleaseNotes && other.storyRecipient.isReleaseNotes -> 1 storyViewState == StoryViewState.UNVIEWED && other.storyViewState != StoryViewState.UNVIEWED -> -1 storyViewState != StoryViewState.UNVIEWED && other.storyViewState == StoryViewState.UNVIEWED -> 1 else -> -dateInMilliseconds.compareTo(other.dateInMilliseconds)