mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
Merge pull request #1627 from krombel/patch-1
Fix GroupMemberList search for users without displayname
This commit is contained in:
commit
361e4c81a9
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ export default withMatrixClient(React.createClass({
|
||||||
query = (query || "").toLowerCase();
|
query = (query || "").toLowerCase();
|
||||||
if (query) {
|
if (query) {
|
||||||
memberList = memberList.filter((m) => {
|
memberList = memberList.filter((m) => {
|
||||||
const matchesName = m.displayname.toLowerCase().indexOf(query) !== -1;
|
const matchesName = (m.displayname || "").toLowerCase().includes(query);
|
||||||
const matchesId = m.userId.toLowerCase().includes(query);
|
const matchesId = m.userId.toLowerCase().includes(query);
|
||||||
|
|
||||||
if (!matchesName && !matchesId) {
|
if (!matchesName && !matchesId) {
|
||||||
|
|
Loading…
Reference in a new issue