Fix link in AdminRoom (#384)

* Fix link in AdminRoom

Signed-off-by: Damien Gaignon <damien.gaignon@gmail.com>

* Add 384.bugfix file

* Add full stop to changelog entry

Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>
This commit is contained in:
Damien Gaignon 2022-07-11 15:48:06 +02:00 committed by GitHub
parent 18df8eb8b6
commit 1d0b2adc8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

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

@ -0,0 +1 @@
Fix malformed webhook link in AdminRoom.

View File

@ -141,7 +141,7 @@ export class SetupConnection extends CommandConnection {
const c = await GenericHookConnection.provisionConnection(this.roomId, userId, {name}, this.provisionOpts);
const url = `${this.config.generic.urlPrefix}${this.config.generic.urlPrefix.endsWith('/') ? '' : '/'}${c.connection.hookId}`;
const adminRoom = await this.getOrCreateAdminRoom(userId);
await adminRoom.sendNotice(md.renderInline(`You have bridged a webhook. Please configure your webhook source to use \`${url}\`.`));
await adminRoom.sendNotice(`You have bridged a webhook. Please configure your webhook source to use ${url}.`);
return this.as.botClient.sendNotice(this.roomId, `Room configured to bridge webhooks. See admin room for secret url.`);
}