From 594492fbddd930c04184a848fbb73866274fbae6 Mon Sep 17 00:00:00 2001 From: Maxim Date: Wed, 13 Jun 2018 22:58:51 +0300 Subject: [PATCH] Add Title from attachment slack message (#446) --- bridge/slack/slack.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 1fcfa32a..417a4330 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -503,7 +503,10 @@ 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 }