Merge pull request #1627 from krombel/patch-1

Fix GroupMemberList search for users without displayname
pull/21833/head
Matthew Hodgson 2017-11-20 16:05:39 +00:00 committed by GitHub
commit 361e4c81a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ export default withMatrixClient(React.createClass({
query = (query || "").toLowerCase();
if (query) {
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);
if (!matchesName && !matchesId) {