Use same kind

This commit is contained in:
RMidhunSuresh 2022-07-07 17:26:43 +05:30
parent d292e1f5ad
commit 0bdbb96036
2 changed files with 3 additions and 4 deletions

View file

@ -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";
}
}

View file

@ -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);
}
}),