Add support for setting room on webhook

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
main
Marcus Noble 11 months ago
parent 0be6cc8d88
commit 2171865c10
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
  1. 2
      alertmanager.go

@ -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),
)

Loading…
Cancel
Save