Thumbnail

rani/matterbridge.git

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

commit 08e9fda3ee9ed29704d90fe4808fd357a0da2f67 Author: Wim <wim@42.be> Date: Mon Sep 18 23:44:16 2017 +0000 Allow empty message if we have a slack attachment diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index 732c9e3..9dcf96c 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -2817 +2817 @@ 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   }   }