Merge pull request #1302 from DynamycSound/fix/trakt-watchlist-recently-added-order

fix(trakt): restore recently-added order for Trakt watchlist
This commit is contained in:
Nayif 2026-06-11 01:24:06 +05:30 committed by GitHub
commit 138089922a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -538,10 +538,7 @@ object TraktLibraryRepository {
}
return (movieItems + showItems)
.mapNotNull(::mapToLibraryItem)
.sortedWith(
compareBy<LibraryItem> { it.traktRank ?: Int.MAX_VALUE }
.thenByDescending { it.savedAtEpochMs },
)
.sortedByDescending { it.savedAtEpochMs }
}
private suspend fun fetchPersonalListItems(