match partial names in memberlist
This commit is contained in:
parent
61018f4f38
commit
ca56b7ec2d
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ module.exports = React.createClass({
|
|||
|
||||
var memberList = self.state.members.filter(function(userId) {
|
||||
var m = self.memberDict[userId];
|
||||
if (query && m.name.toLowerCase().indexOf(query) !== 0) {
|
||||
if (query && m.name.toLowerCase().indexOf(query) === -1) {
|
||||
return false;
|
||||
}
|
||||
return m.membership == membership;
|
||||
|
|
Loading…
Reference in a new issue