Merge pull request #790 from vector-im/fix-hide-composer

Pass childOptions to LowPowerLevelViewModel
This commit is contained in:
R Midhun Suresh 2022-07-07 18:19:08 +05:30 committed by GitHub
commit 8291aea2f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ export class RoomViewModel extends ViewModel {
this._composerVM = this.track(new ComposerViewModel(this)); this._composerVM = this.track(new ComposerViewModel(this));
} }
else { else {
this._composerVM = this.track(new LowerPowerLevelViewModel()); this._composerVM = this.track(new LowerPowerLevelViewModel(this.childOptions()));
} }
this.emitChange("powerLevelObservable") this.emitChange("powerLevelObservable")
}; };