From 27d886826cd124feded6d7856847687568a395d0 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 18 Sep 2017 23:44:16 +0200 Subject: Allow empty message if we have a slack attachment --- matterclient/matterclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'matterclient') 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 } } -- cgit v1.2.3