mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
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:
parent
18df8eb8b6
commit
1d0b2adc8a
1
changelog.d/384.bugfix
Normal file
1
changelog.d/384.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix malformed webhook link in AdminRoom.
|
@ -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.`);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user