fix(StreamItem): correctly determine upcoming videos

Fixes a bug, where the check for upcoming videos was inverted, i.e.
checking if the video had already been published. This caused the
all-caught-up indicator to appear incorrectly.

Ref: c3be28e23b
This commit is contained in:
FineFindus 2025-01-26 12:25:23 +01:00
parent 111cd1b350
commit fafaed7e56
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B

View File

@ -29,7 +29,7 @@ data class StreamItem(
val isShort: Boolean = false
) : Parcelable {
val isLive get() = (duration == null) || (duration <= 0L)
val isUpcoming get() = uploaded < System.currentTimeMillis()
val isUpcoming get() = uploaded > System.currentTimeMillis()
fun toLocalPlaylistItem(playlistId: String): LocalPlaylistItem {
return LocalPlaylistItem(