First special treatment of space-rooms

This commit is contained in:
Michael Telatynski 2021-02-19 14:20:57 +00:00
parent 6b3f05a3cd
commit 79daf615e4
4 changed files with 15 additions and 8 deletions

View file

@ -122,6 +122,7 @@ export class BreadcrumbsStore extends AsyncStoreWithClient<IState> {
}
private async appendRoom(room: Room) {
if (room.isSpaceRoom() && SettingsStore.getValue("feature_spaces")) return; // hide space rooms
let updated = false;
const rooms = (this.state.rooms || []).slice(); // cheap clone