diff --git a/CHANGES.md b/CHANGES.md index e716f1252a..207d04d6d0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -20,6 +20,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 🗣: - diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/user/UserDataSource.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/user/UserDataSource.kt index a0137defb6..60f163064f 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/user/UserDataSource.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/user/UserDataSource.kt @@ -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()