also create new vm when coming for grid if transfering vm fails

This commit is contained in:
Bruno Windels 2020-10-13 13:12:30 +02:00
parent 77a58041eb
commit 379d65edf1

View File

@ -115,7 +115,11 @@ export class SessionViewModel extends ViewModel {
} else if (this._gridViewModel && !roomIds) {
if (currentRoomId) {
const vm = this._gridViewModel.releaseRoomViewModel(currentRoomId.value);
if (vm) {
this._currentRoomViewModel = this.track(vm);
} else {
this._currentRoomViewModel = this.track(this._createRoomViewModel(currentRoomId.value));
}
}
this._gridViewModel = this.disposeTracked(this._gridViewModel);
}