Thumbnail

rani/matterbridge.git

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

commit c7dab7b3ec8305358733dec75118dfbeb1915f6b Author: Wim <wim@42.be> Date: Sun Dec 15 23:49:17 2019 +0000 Return when we have only WebhookURL (mattermost). Fixes #954 (#960) diff --git a/bridge/mattermost/handlers.go b/bridge/mattermost/handlers.go index 0b1c776..e0e5f92 100644 --- a/bridge/mattermost/handlers.go +++ b/bridge/mattermost/handlers.go @@ -679 +678 @@ func (b *Bmattermost) handleMatter() {   b.Log.Debugf("Choosing login/password based receiving")   }   // if for some reason we only want to sent stuff to mattermost but not receive, return - if b.GetString("WebhookBindAddress") == "" && b.GetString("WebhookURL") != "" { + if b.GetString("WebhookBindAddress") == "" && b.GetString("WebhookURL") != "" && b.GetString("Token") == "" && b.GetString("Login") == "" {   b.Log.Debugf("No WebhookBindAddress specified, only WebhookURL. You will not receive messages from mattermost, only sending is possible.") - return   }   go b.handleMatterClient(messages)   }