Merge pull request #2127 from matrix-org/dbkr/hide_replaced_rooms

Hide replaced rooms
This commit is contained in:
David Baker 2018-08-23 09:33:40 +01:00 committed by GitHub
commit 06ffc70aa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ module.exports = React.createClass({
}; };
// All rooms that should be kept in the room list when filtering. // All rooms that should be kept in the room list when filtering.
// By default, show all rooms. // By default, show all rooms.
this._visibleRooms = MatrixClientPeg.get().getRooms(); this._visibleRooms = MatrixClientPeg.get().getVisibleRooms();
// Listen to updates to group data. RoomList cares about members and rooms in order // Listen to updates to group data. RoomList cares about members and rooms in order
// to filter the room list when group tags are selected. // to filter the room list when group tags are selected.
@ -302,7 +302,7 @@ module.exports = React.createClass({
this._visibleRooms = Array.from(roomSet); this._visibleRooms = Array.from(roomSet);
} else { } else {
// Show all rooms // Show all rooms
this._visibleRooms = MatrixClientPeg.get().getRooms(); this._visibleRooms = MatrixClientPeg.get().getVisibleRooms();
} }
this._delayedRefreshRoomList(); this._delayedRefreshRoomList();
}, },