From ab697c8c94bc26b5739a76678130ee7cbb0ca050 Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Fri, 20 Mar 2020 03:49:41 +0000 Subject: [PATCH] Fix #1039: messages sent to Slack being synced back 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 --- bridge/slack/slack.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 23c856bd46..89ff296ce5 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)