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
1 changed files with 4 additions and 1 deletions

View File

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