mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Allow proper responses to widget-setup commands (#403)
* Allow proper responses to widget-setup commands * changelog
This commit is contained in:
parent
b491ad1e07
commit
3199f0c87b
1
changelog.d/403.bugfix
Normal file
1
changelog.d/403.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Allow replying with the proper notice message when a widget is set up.
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user