Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit fcc2f3a8baeb73bbcb5537dd0e8eba16d1e505d0 Author: Maxim <mvaleev@users.noreply.github.com> Date: Wed Jun 13 22:58:51 2018 +0000 Add Title from attachment slack message (#446) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 1fcfa32..417a433 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -5037 +50310 @@ func (b *Bslack) handleMessageEvent(ev *slack.MessageEvent) (*config.Message, er   if rmsg.Text == "" {   for _, attach := range ev.Attachments {   if attach.Text != "" { - rmsg.Text = attach.Text + if attach.Title != "" { + rmsg.Text = attach.Title + "\n" + } + rmsg.Text += attach.Text   } else {   rmsg.Text = attach.Fallback   }