summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
authorQais Patankar <qaisjp@gmail.com>2020-03-21 19:12:30 +0000
committerGitHub <noreply@github.com>2020-03-21 20:12:30 +0100
commit0951e75c859e05508b0f2b2306acf963a863d5f9 (patch)
tree08dd55960313faf67e771fec8ae170f86972adbb /bridge/slack/slack.go
parent6b017b226a9944940158331b7ff51abc6945b119 (diff)
downloadmatterbridge-msglm-0951e75c859e05508b0f2b2306acf963a863d5f9.tar.gz
matterbridge-msglm-0951e75c859e05508b0f2b2306acf963a863d5f9.tar.bz2
matterbridge-msglm-0951e75c859e05508b0f2b2306acf963a863d5f9.zip
Fix #1039: messages sent to Slack being synced back (#1046)
This is a regression from https://github.com/42wim/matterbridge/pull/581#issuecomment-562937576 Behaves the same as https://github.com/matterbridge/slack/commit/95190f11bfb6405b0394b75a29bd1c1bb91f553e
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 23c856bd..89ff296c 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -498,7 +498,8 @@ func (b *Bslack) prepareMessageOptions(msg *config.Message) []slack.MsgOption {
var attachments []slack.Attachment
// add a callback ID so we can see we created it
- attachments = append(attachments, slack.Attachment{CallbackID: "matterbridge_" + b.uuid})
+ const zeroWidthSpace = "\u200b"
+ attachments = append(attachments, slack.Attachment{CallbackID: "matterbridge_" + b.uuid, Fallback: zeroWidthSpace})
// add file attachments
attachments = append(attachments, b.createAttach(msg.Extra)...)
// add slack attachments (from another slack bridge)