summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
authorQais Patankar <qaisjp@gmail.com>2020-12-31 18:01:57 +0000
committerGitHub <noreply@github.com>2020-12-31 18:01:57 +0000
commita9d8ac8bc0c745d43440aa56f1b602edf8e4aef7 (patch)
treee6ce1698337ae6882470028fe659f690f384efe9 /bridge/slack/slack.go
parent1a4717b366a2371dacc0ce205b0a42c5b31f52dc (diff)
downloadmatterbridge-msglm-a9d8ac8bc0c745d43440aa56f1b602edf8e4aef7.tar.gz
matterbridge-msglm-a9d8ac8bc0c745d43440aa56f1b602edf8e4aef7.tar.bz2
matterbridge-msglm-a9d8ac8bc0c745d43440aa56f1b602edf8e4aef7.zip
Refactor "msg-parent-not-found" to config.ParentIDNotFound (#1347)
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 384581ef..e016a64f 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -299,7 +299,7 @@ func (b *Bslack) sendRTM(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)
}