mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
making the isNormalized function an extension and internal to the sdk
This commit is contained in:
parent
4ae04fc297
commit
dbb4a87784
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user