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() {
|
get kind() {
|
||||||
return "archived";
|
return "disabled";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -396,6 +396,6 @@ class LowerPowerLevelViewModel extends ViewModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
get kind() {
|
get kind() {
|
||||||
return "low-powerlevel";
|
return "disabled";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,8 +57,7 @@ export class RoomView extends TemplateView {
|
||||||
switch (composerViewModel?.kind) {
|
switch (composerViewModel?.kind) {
|
||||||
case "composer":
|
case "composer":
|
||||||
return new MessageComposer(vm.composerViewModel, this._viewClassForTile);
|
return new MessageComposer(vm.composerViewModel, this._viewClassForTile);
|
||||||
case "archived":
|
case "disabled":
|
||||||
case "low-powerlevel":
|
|
||||||
return new DisabledComposerView(vm.composerViewModel);
|
return new DisabledComposerView(vm.composerViewModel);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
Reference in a new issue