Make the room filter use normalized strings.

This commit is contained in:
Benoit Marty 2024-12-16 16:18:15 +01:00
parent 66ca329e8e
commit a106950051
4 changed files with 32 additions and 3 deletions

View file

@ -7,6 +7,8 @@
package io.element.android.libraries.matrix.api.roomlist
import io.element.android.libraries.core.extensions.withoutAccents
sealed interface RoomListFilter {
companion object {
/**
@ -73,5 +75,7 @@ sealed interface RoomListFilter {
*/
data class NormalizedMatchRoomName(
val pattern: String
) : RoomListFilter
) : RoomListFilter {
val normalizedPattern: String = pattern.withoutAccents()
}
}