mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Float onboarding story to top of the list.
This commit is contained in:
committed by
Cody Henthorne
parent
34379b8d3a
commit
ecbc2d30ca
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user