diff --git a/src/domain/session/roomlist/RoomTileViewModel.js b/src/domain/session/leftpanel/RoomTileViewModel.js similarity index 93% rename from src/domain/session/roomlist/RoomTileViewModel.js rename to src/domain/session/leftpanel/RoomTileViewModel.js index 76cab067..86f832c4 100644 --- a/src/domain/session/roomlist/RoomTileViewModel.js +++ b/src/domain/session/leftpanel/RoomTileViewModel.js @@ -1,5 +1,6 @@ /* Copyright 2020 Bruno Windels +Copyright 2020 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -29,6 +30,18 @@ export class RoomTileViewModel extends ViewModel { this._emitOpen = emitOpen; this._isOpen = false; this._wasUnreadWhenOpening = false; + this._hidden = false; + } + + get hidden() { + return this._hidden; + } + + set hidden(value) { + if (value !== this._hidden) { + this._hidden = value; + this.emitChange("hidden"); + } } // called by parent for now (later should integrate with router)