summaryrefslogtreecommitdiffstats
path: root/matterclient
diff options
context:
space:
mode:
Diffstat (limited to 'matterclient')
-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 ""