filter room directory case insensitively

This commit is contained in:
Matthew Hodgson 2016-02-14 13:32:15 +02:00
parent 95a3354b90
commit f3df0d07f8
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ module.exports = React.createClass({
var rooms = this.state.publicRooms.filter(function(a) {
// FIXME: if incrementally typing, keep narrowing down the search set
// incrementally rather than starting over each time.
return (a.aliases[0].search(filter) >= 0 && a.num_joined_members > 0);
return (a.aliases[0].toLowerCase().search(filter.toLowerCase()) >= 0 && a.num_joined_members > 0);
}).sort(function(a,b) {
return a.num_joined_members - b.num_joined_members;
});