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

Return channelId for other channeltypes too (mattermost)

This commit is contained in:
Wim 2019-04-01 22:50:19 +02:00
parent caf9ef2c4b
commit 1f8016182c

View File

@ -51,8 +51,11 @@ func (m *MMClient) GetChannelId(name string, teamId string) string { //nolint:go
if res == name { if res == name {
return channel.Id return channel.Id
} }
} else {
if channel.Name == name {
return channel.Id
}
} }
} }
} }
return "" return ""