mirror of
https://github.com/42wim/matterbridge
synced 2024-11-03 15:40:24 +00:00
Replace mentions from other bridges. (slack). Closes #233
This commit is contained in:
parent
f4fb83e787
commit
9226252336
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user