diff options
author | Wim <wim@42.be> | 2019-04-01 22:50:19 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2019-04-01 22:50:19 +0200 |
commit | 1f8016182c00146854773a8f13cf80738dadf616 (patch) | |
tree | 939fa0892da1b4afb1b2bc3a9e09c79a4bb2b75b /matterclient | |
parent | caf9ef2c4b8bd924bf9edee4bd3991de45d853a6 (diff) | |
download | matterbridge-msglm-1f8016182c00146854773a8f13cf80738dadf616.tar.gz matterbridge-msglm-1f8016182c00146854773a8f13cf80738dadf616.tar.bz2 matterbridge-msglm-1f8016182c00146854773a8f13cf80738dadf616.zip |
Return channelId for other channeltypes too (mattermost)
Diffstat (limited to 'matterclient')
-rw-r--r-- | matterclient/channels.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/matterclient/channels.go b/matterclient/channels.go index 655efe96..568a20eb 100644 --- a/matterclient/channels.go +++ b/matterclient/channels.go @@ -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 "" |