Add support for setting room on webhook
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
0be6cc8d88
commit
2171865c10
@ -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…
Reference in New Issue
Block a user