Fix #387
This commit is contained in:
@@ -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>) =
|
infix operator fun <T : Innertube.Item> Innertube.ItemsPage<T>?.plus(other: Innertube.ItemsPage<T>) =
|
||||||
other.copy(
|
other.copy(
|
||||||
items = this?.items?.plus(other.items ?: emptyList())?.distinctBy(Innertube.Item::key)
|
items = (this?.items?.plus(other.items ?: emptyList())
|
||||||
?: other.items
|
?: other.items)?.distinctBy(Innertube.Item::key)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user