From 1b1d5d9a744ce5fcbffc68333b1e3fc4ca1529f6 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 1 Aug 2020 02:00:51 +0300 Subject: [PATCH] Fix bug in HTML parser --- formatting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formatting.go b/formatting.go index 478fd1a..e150b59 100644 --- a/formatting.go +++ b/formatting.go @@ -143,6 +143,6 @@ func (formatter *Formatter) ParseWhatsApp(content *event.MessageEventContent, me func (formatter *Formatter) ParseMatrix(html string) (string, []types.WhatsAppID) { ctx := make(format.Context) result := formatter.matrixHTMLParser.Parse(html, ctx) - mentionedJIDs := ctx[mentionedJIDsContextKey].([]types.WhatsAppID) + mentionedJIDs, _ := ctx[mentionedJIDsContextKey].([]types.WhatsAppID) return result, mentionedJIDs }