Skip to content

Commit

Permalink
Fix #1039: messages sent to Slack being synced back
Browse files Browse the repository at this point in the history
This is a regression from #581 (comment)

Behaves the same as matterbridge/slack@95190f1
  • Loading branch information
qaisjp committed Mar 20, 2020
1 parent 6b017b2 commit 71cfc5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridge/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "​"
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)
Expand Down

0 comments on commit 71cfc5a

Please sign in to comment.