From a9d8ac8bc0c745d43440aa56f1b602edf8e4aef7 Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Thu, 31 Dec 2020 18:01:57 +0000 Subject: Refactor "msg-parent-not-found" to config.ParentIDNotFound (#1347) --- bridge/mattermost/mattermost.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/mattermost') diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 2c11b79e..bb44c48a 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -122,7 +122,7 @@ func (b *Bmattermost) Send(msg config.Message) (string, error) { } // Handle prefix hint for unthreaded messages. - if msg.ParentID == "msg-parent-not-found" { + if msg.ParentNotFound() { msg.ParentID = "" msg.Text = fmt.Sprintf("[thread]: %s", msg.Text) } -- cgit v1.2.3