summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-08-29 23:34:50 +0200
committerWim <wim@42.be>2017-08-29 23:34:50 +0200
commit9226252336fbddd0676e5e4cbdccb676440abafa (patch)
tree4e8176b5ba4d56332ae053924a2234b77e048aa9 /bridge/slack/slack.go
parentf4fb83e787d3555668d34e572e485fa9cace9bbd (diff)
downloadmatterbridge-msglm-9226252336fbddd0676e5e4cbdccb676440abafa.tar.gz
matterbridge-msglm-9226252336fbddd0676e5e4cbdccb676440abafa.tar.bz2
matterbridge-msglm-9226252336fbddd0676e5e4cbdccb676440abafa.zip
Replace mentions from other bridges. (slack). Closes #233
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 31d441a9..e681c784 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -163,6 +163,9 @@ func (b *Bslack) Send(msg config.Message) (string, error) {
np.IconURL = msg.Avatar
}
np.Attachments = append(np.Attachments, slack.Attachment{CallbackID: "matterbridge"})
+ // replace mentions
+ np.LinkNames = 1
+
// if we have no ID it means we're creating a new message, not updating an existing one
if msg.ID != "" {
ts := strings.Fields(msg.ID)