Switched to sending standard text

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-02-28 08:45:16 +00:00
parent 8532a10491
commit 24564bfc4e
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -5,8 +5,6 @@ import (
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"maunium.net/go/mautrix" "maunium.net/go/mautrix"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/format"
"maunium.net/go/mautrix/id" "maunium.net/go/mautrix/id"
) )
@ -31,11 +29,7 @@ New Message from: %s
fmt.Println(msg) fmt.Println(msg)
_, err := matrixClient.SendMessageEvent( _, err := matrixClient.SendText(id.RoomID(getRoom("!pCzzyaOZfCrorkdgOR:matrix.cluster.fun")), msg)
id.RoomID(getRoom(*defaultRoom)),
event.EventMessage,
format.RenderMarkdown(msg, true, true),
)
if err != nil { if err != nil {
fmt.Println("Failed sending to Matrix", err) fmt.Println("Failed sending to Matrix", err)
if httpErr, ok := err.(mautrix.HTTPError); ok { if httpErr, ok := err.(mautrix.HTTPError); ok {