4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-07 05:24:03 +00:00

Do not use webhooks when token is configured (slack) (fixes #1123) (#1134)

This commit is contained in:
Wim
2020-05-14 00:27:34 +02:00
committed by GitHub
parent 7062234331
commit c9cfa59f54
2 changed files with 2 additions and 2 deletions

View File

@ -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.GetString(tokenConfig) == "" {
b.Log.Debugf("Choosing webhooks based receiving")
go b.handleMatterHook(messages)
} else {