summaryrefslogtreecommitdiffstats
path: root/matterclient/channels.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-04-02 00:15:58 +0200
committerWim <wim@42.be>2019-04-02 00:15:58 +0200
commit17cc14a9d2351fcd0608c2a81eb32fd9fc3ec987 (patch)
tree0705525553aa6fcffe5821acc2aa6c2116df8ba1 /matterclient/channels.go
parent1f8016182c00146854773a8f13cf80738dadf616 (diff)
downloadmatterbridge-msglm-17cc14a9d2351fcd0608c2a81eb32fd9fc3ec987.tar.gz
matterbridge-msglm-17cc14a9d2351fcd0608c2a81eb32fd9fc3ec987.tar.bz2
matterbridge-msglm-17cc14a9d2351fcd0608c2a81eb32fd9fc3ec987.zip
Send user_added and removed event through message channel (mattermost)
Diffstat (limited to 'matterclient/channels.go')
-rw-r--r--matterclient/channels.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/matterclient/channels.go b/matterclient/channels.go
index 568a20eb..0eac29f8 100644
--- a/matterclient/channels.go
+++ b/matterclient/channels.go
@@ -51,10 +51,8 @@ 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
- }
+ } else if channel.Name == name {
+ return channel.Id
}
}
}