This commit is contained in:
vfsfitvnm 2022-10-09 17:30:38 +02:00
parent 6b01fbb008
commit b9ecb0c669

View file

@ -45,6 +45,6 @@ internal inline fun <R> runCatchingNonCancellable(block: () -> R): Result<R>? {
infix operator fun <T : Innertube.Item> Innertube.ItemsPage<T>?.plus(other: Innertube.ItemsPage<T>) =
other.copy(
items = this?.items?.plus(other.items ?: emptyList())?.distinctBy(Innertube.Item::key)
?: other.items
items = (this?.items?.plus(other.items ?: emptyList())
?: other.items)?.distinctBy(Innertube.Item::key)
)