diff options
author | Wim <wim@42.be> | 2017-09-18 23:44:16 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-09-18 23:44:16 +0200 |
commit | 27d886826cd124feded6d7856847687568a395d0 (patch) | |
tree | 5ddfdef4350d8a0be56337ccfb501480e3331b4c | |
parent | 18981cb63678732c917cb0e30a58dcf07353cb4f (diff) | |
download | matterbridge-msglm-27d886826cd124feded6d7856847687568a395d0.tar.gz matterbridge-msglm-27d886826cd124feded6d7856847687568a395d0.tar.bz2 matterbridge-msglm-27d886826cd124feded6d7856847687568a395d0.zip |
Allow empty message if we have a slack attachment
-rw-r--r-- | matterclient/matterclient.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index 732c9e30..9dcf96c2 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -281,7 +281,7 @@ func (m *MMClient) WsReceiver() { } // if we have file attached but the message is empty, also send it if msg.Post != nil { - if msg.Text != "" || len(msg.Post.FileIds) > 0 { + if msg.Text != "" || len(msg.Post.FileIds) > 0 || msg.Post.Type == "slack_attachment" { m.MessageChan <- msg } } |