Skip to content

Commit

Permalink
TW-845: add case insensitive to global search
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE authored and hoangdat committed Oct 24, 2023
1 parent 332a090 commit 89b14e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/domain/model/room/room_list_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ extension RoomListExtension on List<Room> {
.map((room) => room.toRecentChatSearchModel(matrixLocalizations))
.where(
(model) =>
model.displayName != null && model.displayName!.contains(keyword),
model.displayName != null &&
model.displayName!.toLowerCase().contains(
keyword.toLowerCase(),
),
)
.take(limit ?? length)
.toList();
Expand Down

0 comments on commit 89b14e8

Please sign in to comment.