summaryrefslogtreecommitdiffstats
path: root/matterclient/channels.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-04-01 22:50:19 +0200
committerWim <wim@42.be>2019-04-01 22:50:19 +0200
commit1f8016182c00146854773a8f13cf80738dadf616 (patch)
tree939fa0892da1b4afb1b2bc3a9e09c79a4bb2b75b /matterclient/channels.go
parentcaf9ef2c4b8bd924bf9edee4bd3991de45d853a6 (diff)
downloadmatterbridge-msglm-1f8016182c00146854773a8f13cf80738dadf616.tar.gz
matterbridge-msglm-1f8016182c00146854773a8f13cf80738dadf616.tar.bz2
matterbridge-msglm-1f8016182c00146854773a8f13cf80738dadf616.zip
Return channelId for other channeltypes too (mattermost)
Diffstat (limited to 'matterclient/channels.go')
-rw-r--r--matterclient/channels.go5
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 ""