From e5869f1fc9cf0d05e6fba37f59f16033328491e3 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 14 May 2020 00:01:21 +0200 Subject: [PATCH] Use incoming webhook only on legacy-slack. (fixes #1123) --- bridge/slack/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go index 56e112d22d..bedf2f2066 100644 --- a/bridge/slack/handlers.go +++ b/bridge/slack/handlers.go @@ -16,7 +16,7 @@ var ErrEventIgnored = errors.New("this event message should ignored") func (b *Bslack) handleSlack() { messages := make(chan *config.Message) - if b.GetString(incomingWebhookConfig) != "" { + if b.GetString(incomingWebhookConfig) != "" && b.legacy == true { b.Log.Debugf("Choosing webhooks based receiving") go b.handleMatterHook(messages) } else {