From 1f8016182c00146854773a8f13cf80738dadf616 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 1 Apr 2019 22:50:19 +0200 Subject: Return channelId for other channeltypes too (mattermost) --- matterclient/channels.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'matterclient') 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 "" -- cgit v1.2.3