mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Fix widget config detection (#657)
Co-authored-by: Will Hunt <will@half-shot.uk>
This commit is contained in:
parent
0d0cc6b3da
commit
46e1008942
1
changelog.d/657.bugfix
Normal file
1
changelog.d/657.bugfix
Normal file
@ -0,0 +1 @@
|
||||
`roomSetupWidget` in widget config does now allow an empty value
|
@ -324,7 +324,7 @@ export class SetupConnection extends CommandConnection {
|
||||
|
||||
@botCommand("setup-widget", {category: "widget", help: "Open the setup widget in the room"})
|
||||
public async onSetupWidget() {
|
||||
if (!this.config.widgets?.roomSetupWidget) {
|
||||
if (this.config.widgets?.roomSetupWidget === undefined) {
|
||||
throw new CommandError("Not configured", "The bridge is not configured to support setup widgets");
|
||||
}
|
||||
if (!await SetupWidget.SetupRoomConfigWidget(this.roomId, this.intent, this.config.widgets, this.serviceTypes)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user