mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Return view from SessionView
This commit is contained in:
parent
2d4b6b0341
commit
d6ba218c08
@ -29,6 +29,7 @@ import {SettingsView} from "./settings/SettingsView.js";
|
||||
import {CreateRoomView} from "./CreateRoomView.js";
|
||||
import {RightPanelView} from "./rightpanel/RightPanelView.js";
|
||||
import {viewClassForTile} from "./room/common";
|
||||
import {JoinRoomView} from "./JoinRoomView";
|
||||
|
||||
export class SessionView extends TemplateView {
|
||||
render(t, vm) {
|
||||
@ -48,6 +49,8 @@ export class SessionView extends TemplateView {
|
||||
return new SettingsView(vm.settingsViewModel);
|
||||
} else if (vm.createRoomViewModel) {
|
||||
return new CreateRoomView(vm.createRoomViewModel);
|
||||
} else if (vm.joinRoomViewModel) {
|
||||
return new JoinRoomView(vm.joinRoomViewModel);
|
||||
} else if (vm.currentRoomViewModel) {
|
||||
if (vm.currentRoomViewModel.kind === "invite") {
|
||||
return new InviteView(vm.currentRoomViewModel);
|
||||
|
Loading…
Reference in New Issue
Block a user