You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -94,7 +94,7 @@ export default React.createClass({
|
|||||||
let roomList = this.state.rooms;
|
let roomList = this.state.rooms;
|
||||||
if (query) {
|
if (query) {
|
||||||
roomList = roomList.filter((room) => {
|
roomList = roomList.filter((room) => {
|
||||||
const matchesName = (room.name || "").toLowerCase().include(query);
|
const matchesName = (room.name || "").toLowerCase().includes(query);
|
||||||
const matchesAlias = (room.canonicalAlias || "").toLowerCase().includes(query);
|
const matchesAlias = (room.canonicalAlias || "").toLowerCase().includes(query);
|
||||||
return matchesName || matchesAlias;
|
return matchesName || matchesAlias;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user