From 9226252336fbddd0676e5e4cbdccb676440abafa Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 29 Aug 2017 23:34:50 +0200 Subject: [PATCH] Replace mentions from other bridges. (slack). Closes #233 --- bridge/slack/slack.go | 3 +++ 1 file changed, 3 insertions(+) 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)