mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
also create new vm when coming for grid if transfering vm fails
This commit is contained in:
parent
77a58041eb
commit
379d65edf1
@ -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 New Issue
Block a user