[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 <diegolmello@gmail.com>
This commit is contained in:
parent
23a7f0f689
commit
5a800fe21d
|
@ -139,7 +139,7 @@ class RoomMembersView extends React.Component {
|
||||||
let membersFiltered = [];
|
let membersFiltered = [];
|
||||||
|
|
||||||
if (members && members.length > 0 && text) {
|
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 });
|
this.setState({ filtering: !!text, membersFiltered });
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue