making the isNormalized function an extension and internal to the sdk

This commit is contained in:
Adam Brown 2021-10-27 14:26:51 +01:00
parent 4ae04fc297
commit dbb4a87784
2 changed files with 3 additions and 2 deletions

View file

@ -39,6 +39,6 @@ sealed interface QueryStringValue {
INSENSITIVE,
NORMALIZED
}
fun isNormalized() = this is ContentQueryStringValue && case == Case.NORMALIZED
}
internal fun QueryStringValue.isNormalized() = this is QueryStringValue.ContentQueryStringValue && case == QueryStringValue.Case.NORMALIZED

View file

@ -29,6 +29,7 @@ import io.realm.Sort
import io.realm.kotlin.where
import org.matrix.android.sdk.api.query.ActiveSpaceFilter
import org.matrix.android.sdk.api.query.RoomCategoryFilter
import org.matrix.android.sdk.api.query.isNormalized
import org.matrix.android.sdk.api.session.room.ResultBoundaries
import org.matrix.android.sdk.api.session.room.RoomSortOrder
import org.matrix.android.sdk.api.session.room.RoomSummaryQueryParams