Add support for setting room on webhook

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-12-19 20:56:31 +00:00
parent 0be6cc8d88
commit 2171865c10
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -41,7 +41,7 @@ func HandleAlertmanagerPayloadPost(c *fiber.Ctx) error {
}
_, err := matrixClient.SendMessageEvent(
id.RoomID(getRoom(*defaultRoom)),
id.RoomID(getRoom(c.Query("room", *defaultRoom))),
event.EventMessage,
format.RenderMarkdown(message, true, true),
)