5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 05:50:28 +00:00

Fix mattermost bridge channel join

This commit is contained in:
Wim 2016-09-30 22:59:30 +02:00
parent 0d4bad16a3
commit f10251a1a3

View File

@ -85,7 +85,7 @@ func (b *Bmattermost) FullOrigin() string {
func (b *Bmattermost) JoinChannel(channel string) error {
// we can only join channels using the API
if b.Config.UseAPI {
return b.mc.JoinChannel(channel)
return b.mc.JoinChannel(b.mc.GetChannelId(channel, ""))
}
return nil
}