match partial names in memberlist

This commit is contained in:
Matthew Hodgson 2016-02-15 20:43:43 +00:00
parent 61018f4f38
commit ca56b7ec2d

View file

@ -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;