Skip to content

Commit

Permalink
Use incoming webhook only on legacy-slack. (fixes #1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed May 13, 2020
1 parent 7062234 commit e5869f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/slack/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e5869f1

Please sign in to comment.