Use same kind
This commit is contained in:
parent
d292e1f5ad
commit
0bdbb96036
2 changed files with 3 additions and 4 deletions
|
@ -386,7 +386,7 @@ class ArchivedViewModel extends ViewModel {
|
|||
}
|
||||
|
||||
get kind() {
|
||||
return "archived";
|
||||
return "disabled";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -396,6 +396,6 @@ class LowerPowerLevelViewModel extends ViewModel {
|
|||
}
|
||||
|
||||
get kind() {
|
||||
return "low-powerlevel";
|
||||
return "disabled";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,8 +57,7 @@ export class RoomView extends TemplateView {
|
|||
switch (composerViewModel?.kind) {
|
||||
case "composer":
|
||||
return new MessageComposer(vm.composerViewModel, this._viewClassForTile);
|
||||
case "archived":
|
||||
case "low-powerlevel":
|
||||
case "disabled":
|
||||
return new DisabledComposerView(vm.composerViewModel);
|
||||
}
|
||||
}),
|
||||
|
|
Reference in a new issue