From 5a800fe21de182cba74eaef91c429a0c0bb03ba2 Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Wed, 7 Apr 2021 15:15:05 -0400 Subject: [PATCH] [FIX] Unable to search non-latin alphabet names on members list (#3039) * Add search by name in members list * Update RoomMembersView search Co-authored-by: Diego Mello --- app/views/RoomMembersView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/RoomMembersView/index.js b/app/views/RoomMembersView/index.js index 4caa0338..9a47b60f 100644 --- a/app/views/RoomMembersView/index.js +++ b/app/views/RoomMembersView/index.js @@ -139,7 +139,7 @@ class RoomMembersView extends React.Component { let membersFiltered = []; if (members && members.length > 0 && text) { - membersFiltered = members.filter(m => m.username.toLowerCase().match(text.toLowerCase())); + membersFiltered = members.filter(m => m.username.toLowerCase().match(text.toLowerCase()) || m.name.toLowerCase().match(text.toLowerCase())); } this.setState({ filtering: !!text, membersFiltered }); })