diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 0951fb10..307a9023 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -356,6 +356,10 @@ func (b *Bslack) editMessage(msg *config.Message, channelInfo *slack.Channel) (b } func (b *Bslack) postMessage(msg *config.Message, messageParameters *slack.PostMessageParameters, channelInfo *slack.Channel) (string, error) { + // don't post empty messages + if msg.Text == "" { + return "", nil + } for { _, id, err := b.rtm.PostMessage(channelInfo.ID, msg.Text, *messageParameters) if err == nil {