From 436c3a620e59951be82481571f9f432913de27e3 Mon Sep 17 00:00:00 2001 From: Annie Elequin Date: Thu, 16 Sep 2021 18:26:58 -0400 Subject: [PATCH] replace some whatsapp stuff --- formatting.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/formatting.go b/formatting.go index 4fed513..464f726 100644 --- a/formatting.go +++ b/formatting.go @@ -32,7 +32,7 @@ var boldRegex = regexp.MustCompile("([\\s>_~]|^)\\*(.+?)\\*([^a-zA-Z\\d]|$)") var strikethroughRegex = regexp.MustCompile("([\\s>_*]|^)~(.+?)~([^a-zA-Z\\d]|$)") var codeBlockRegex = regexp.MustCompile("```(?:.|\n)+?```") -const mentionedJIDsContextKey = "net.maunium.whatsapp.mentioned_jids" +const mentionedJIDsContextKey = "net.maunium.groupme.mentioned_jids" type Formatter struct { bridge *Bridge @@ -55,9 +55,9 @@ func NewFormatter(bridge *Bridge) *Formatter { if mxid[0] == '@' { puppet := bridge.GetPuppetByMXID(id.UserID(mxid)) if puppet != nil { - jids, ok := ctx[mentionedJIDsContextKey].([]whatsapp.JID) + jids, ok := ctx[mentionedJIDsContextKey].([]groupme.JID) if !ok { - ctx[mentionedJIDsContextKey] = []whatsapp.JID{puppet.JID} + ctx[mentionedJIDsContextKey] = []groupme.JID{puppet.JID} } else { ctx[mentionedJIDsContextKey] = append(jids, puppet.JID) }