summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-09-30 23:15:35 +0200
committerWim <wim@42.be>2016-09-30 23:15:35 +0200
commit0e527a4252796c5f9615edc9412394bc4805e78a (patch)
treefc4671f4699b3711b2db48963282da587f8b0d89 /bridge
parentf10251a1a307255560e83af03c7f4d299e0bd163 (diff)
downloadmatterbridge-msglm-0e527a4252796c5f9615edc9412394bc4805e78a.tar.gz
matterbridge-msglm-0e527a4252796c5f9615edc9412394bc4805e78a.tar.bz2
matterbridge-msglm-0e527a4252796c5f9615edc9412394bc4805e78a.zip
Fix slack channel join
Diffstat (limited to 'bridge')
-rw-r--r--bridge/slack/slack.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 79b291b2..d0156ec8 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -70,9 +70,8 @@ func (b *Bslack) FullOrigin() string {
func (b *Bslack) JoinChannel(channel string) error {
// we can only join channels using the API
if b.Config.UseAPI {
- schannel := b.getChannelByName(channel)
- if schannel != nil && !schannel.IsMember {
- _, err := b.sc.JoinChannel(schannel.ID)
+ _, err := b.sc.JoinChannel(channel)
+ if err != nil {
return err
}
}