Allow proper responses to widget-setup commands (#403)

* Allow proper responses to widget-setup commands

* changelog
This commit is contained in:
Andrew Ferrazzutti 2022-07-11 09:40:37 -04:00 committed by GitHub
parent b491ad1e07
commit 3199f0c87b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
changelog.d/403.bugfix Normal file
View File

@ -0,0 +1 @@
Allow replying with the proper notice message when a widget is set up.

View File

@ -23,7 +23,7 @@ export class SetupWidget {
return false;
}
private static async createWidgetInRoom(roomId: string, botIntent: Intent, config: BridgeWidgetConfig, kind: HookshotWidgetKind, stateKey: string) {
private static async createWidgetInRoom(roomId: string, botIntent: Intent, config: BridgeWidgetConfig, kind: HookshotWidgetKind, stateKey: string): Promise<boolean> {
log.info(`Running SetupRoomConfigWidget for ${roomId}`);
try {
const res = await botIntent.underlyingClient.getRoomStateEvent(
@ -58,6 +58,6 @@ export class SetupWidget {
"waitForIframeLoad": true,
}
);
return false;
return true;
}
}