mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-26 23:29:25 +00:00
Fix joining slack/mattermost channels using the webhook
This commit is contained in:
@ -84,7 +84,11 @@ func (b *Bmattermost) FullOrigin() string {
|
||||
}
|
||||
|
||||
func (b *Bmattermost) JoinChannel(channel string) error {
|
||||
return b.mc.JoinChannel(channel)
|
||||
// we can only join channels using the API
|
||||
if b.Config.UseAPI {
|
||||
return b.mc.JoinChannel(channel)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b *Bmattermost) Name() string {
|
||||
|
Reference in New Issue
Block a user