diff --git a/persistence/src/androidMain/kotlin/com/wire/kalium/persistence/dao/message/KaliumOffsetQueryPagingSource.kt b/persistence/src/androidMain/kotlin/com/wire/kalium/persistence/dao/message/KaliumOffsetQueryPagingSource.kt index 86afe4780ae..8f40f59e6c7 100644 --- a/persistence/src/androidMain/kotlin/com/wire/kalium/persistence/dao/message/KaliumOffsetQueryPagingSource.kt +++ b/persistence/src/androidMain/kotlin/com/wire/kalium/persistence/dao/message/KaliumOffsetQueryPagingSource.kt @@ -37,6 +37,10 @@ import kotlinx.coroutines.withContext import kotlin.coroutines.CoroutineContext import kotlin.properties.Delegates +/** + * This class is duplicated from sqlDelight []OffsetQueryPagingSource] so we can pass an initial offset instead of depending + * only on the offset result coming from the queryProvider callback. + */ @Suppress("ComplexMethod") internal class KaliumOffsetQueryPagingSource<RowType : Any>( private val queryProvider: (limit: Int, offset: Int) -> Query<RowType>,