commit 8224ab6f4702b872741441f46e009f7c8f334b2f
Author: Wim <wim@42.be>
Date: Sun Jul 16 18:08:26 2017 +0000
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 101b901..4f9b7fc 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -2626 +26215 @@ func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
}
m.Channel = channel.Name
m.Text = ev.Text
+ if m.Text == "" {
+ for _, attach := range ev.Attachments {
+ if attach.Text != "" {
+ m.Text = attach.Text
+ } else {
+ m.Text = attach.Fallback
+ }
+ }
+ }
m.Raw = ev
m.Text = b.replaceMention(m.Text)
if ev.BotID != "" {