mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +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) {
|
} else if (this._gridViewModel && !roomIds) {
|
||||||
if (currentRoomId) {
|
if (currentRoomId) {
|
||||||
const vm = this._gridViewModel.releaseRoomViewModel(currentRoomId.value);
|
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);
|
this._gridViewModel = this.disposeTracked(this._gridViewModel);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user