Float onboarding story to top of the list.

fork-5.53.8
Alex Hart 2022-07-13 13:29:56 -03:00 zatwierdzone przez Cody Henthorne
rodzic 34379b8d3a
commit ecbc2d30ca
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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)