Fixes #1468 user search case
This commit is contained in:
parent
19f16c9e56
commit
2932e05851
@ -19,6 +19,7 @@ Bugfix 🐛:
|
||||
- User could not redact message that they have sent (#1543)
|
||||
- Use vendor prefix for non merged MSC (#1537)
|
||||
- Compress images before sending (#1333)
|
||||
- Searching by displayname is case sensitive (#1468)
|
||||
|
||||
Translations 🗣:
|
||||
-
|
||||
|
@ -33,6 +33,7 @@ import im.vector.matrix.android.internal.database.model.UserEntityFields
|
||||
import im.vector.matrix.android.internal.database.query.where
|
||||
import im.vector.matrix.android.internal.di.SessionDatabase
|
||||
import im.vector.matrix.android.internal.util.fetchCopied
|
||||
import io.realm.Case
|
||||
import javax.inject.Inject
|
||||
|
||||
internal class UserDataSource @Inject constructor(@SessionDatabase private val monarchy: Monarchy) {
|
||||
@ -91,7 +92,7 @@ internal class UserDataSource @Inject constructor(@SessionDatabase private val m
|
||||
} else {
|
||||
query
|
||||
.beginGroup()
|
||||
.contains(UserEntityFields.DISPLAY_NAME, filter)
|
||||
.contains(UserEntityFields.DISPLAY_NAME, filter, Case.INSENSITIVE)
|
||||
.or()
|
||||
.contains(UserEntityFields.USER_ID, filter)
|
||||
.endGroup()
|
||||
|
Loading…
x
Reference in New Issue
Block a user