forked from mystiq/hydrogen-web
also create new vm when coming for grid if transfering vm fails
This commit is contained in:
parent
77a58041eb
commit
379d65edf1
1 changed files with 5 additions and 1 deletions
|
@ -115,7 +115,11 @@ export class SessionViewModel extends ViewModel {
|
|||
} else if (this._gridViewModel && !roomIds) {
|
||||
if (currentRoomId) {
|
||||
const vm = this._gridViewModel.releaseRoomViewModel(currentRoomId.value);
|
||||
this._currentRoomViewModel = this.track(vm);
|
||||
if (vm) {
|
||||
this._currentRoomViewModel = this.track(vm);
|
||||
} else {
|
||||
this._currentRoomViewModel = this.track(this._createRoomViewModel(currentRoomId.value));
|
||||
}
|
||||
}
|
||||
this._gridViewModel = this.disposeTracked(this._gridViewModel);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue