Merge pull request 'Fix ordering of favourites timeline' (#392) from Oneric/akkoma-fe:favourite-ordering into develop

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma-fe/pulls/392
This commit is contained in:
floatingghost 2024-05-28 02:07:15 +00:00
commit 29ff2ef455

View file

@ -314,7 +314,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
})
// Keep the visible statuses sorted
if (timeline && !(timeline === 'bookmarks')) {
if (timeline && !(['bookmarks', 'favorites'].includes(timeline))) {
sortTimeline(timelineObject)
}
}