From 2171865c10d5875f2d4940f15d56545a819f2a53 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 19 Dec 2021 20:56:31 +0000 Subject: [PATCH] Add support for setting room on webhook Signed-off-by: Marcus Noble --- alertmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alertmanager.go b/alertmanager.go index ce724ee..b291ead 100644 --- a/alertmanager.go +++ b/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), )