mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-25 22:31:35 +00:00
Ignore restricted_acton on channel join (slack). Closes #387
This commit is contained in:
parent
e5989adf92
commit
8c0b04b995
@ -103,8 +103,12 @@ func (b *Bslack) JoinChannel(channel config.ChannelInfo) error {
|
|||||||
}
|
}
|
||||||
_, err := b.sc.JoinChannel(channel.Name)
|
_, err := b.sc.JoinChannel(channel.Name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err.Error() != "name_taken" {
|
switch err.Error() {
|
||||||
return err
|
case "name_taken", "restricted_action":
|
||||||
|
case "default":
|
||||||
|
{
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user