summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost/mattermost.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-09-20 12:20:44 +0200
committerWim <wim@42.be>2016-09-20 12:20:44 +0200
commitdce600ad51100d9f9a1cee1d0bda9410f0a2c2a9 (patch)
treefd7ff3d7fefdc9aa689b3132fc24f76a7331f7df /bridge/mattermost/mattermost.go
parentd02a737e0cf78a30486872f849df7354ec09a6fc (diff)
downloadmatterbridge-msglm-dce600ad51100d9f9a1cee1d0bda9410f0a2c2a9.tar.gz
matterbridge-msglm-dce600ad51100d9f9a1cee1d0bda9410f0a2c2a9.tar.bz2
matterbridge-msglm-dce600ad51100d9f9a1cee1d0bda9410f0a2c2a9.zip
Fix joining slack/mattermost channels using the webhook
Diffstat (limited to 'bridge/mattermost/mattermost.go')
-rw-r--r--bridge/mattermost/mattermost.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index 0e627666..a79a311b 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -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 {