diff options
author | Wim <wim@42.be> | 2019-04-02 00:15:58 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2019-04-02 00:15:58 +0200 |
commit | 17cc14a9d2351fcd0608c2a81eb32fd9fc3ec987 (patch) | |
tree | 0705525553aa6fcffe5821acc2aa6c2116df8ba1 /matterclient/matterclient.go | |
parent | 1f8016182c00146854773a8f13cf80738dadf616 (diff) | |
download | matterbridge-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/matterclient.go')
-rw-r--r-- | matterclient/matterclient.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index 18006c7a..f21cc068 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -216,9 +216,14 @@ func (m *MMClient) WsReceiver() { if msg.Post != nil { if msg.Text != "" || len(msg.Post.FileIds) > 0 || msg.Post.Type == "slack_attachment" { m.MessageChan <- msg + continue } } - continue + switch msg.Raw.Event { + case model.WEBSOCKET_EVENT_USER_ADDED, model.WEBSOCKET_EVENT_USER_REMOVED: + m.MessageChan <- msg + continue + } } var response model.WebSocketResponse |