mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Remove unnecessary check
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
c3333f5fe8
commit
9a605cc6c6
@ -260,9 +260,6 @@ export class SessionViewModel extends ViewModel {
|
||||
_toggleRoomInformationPanel() {
|
||||
this._roomInfoViewModel = this.disposeTracked(this._roomInfoViewModel);
|
||||
const room = this._roomFromNavigation();
|
||||
if (!room) {
|
||||
return;
|
||||
}
|
||||
const enable = !!this.navigation.path.get("details");
|
||||
if (enable) {
|
||||
this._roomInfoViewModel = this.track(new RoomInfoViewModel(this.childOptions({ room })));
|
||||
|
Loading…
Reference in New Issue
Block a user