5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-24 17:15:40 +00:00

Fix slack channel join

This commit is contained in:
Wim 2016-09-30 23:15:35 +02:00
parent f10251a1a3
commit 0e527a4252

View File

@ -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
}
}