diff options
author | Wim <wim@42.be> | 2019-04-13 21:52:39 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2019-04-13 21:52:39 +0200 |
commit | 4db34b0506cc7998437313efaf33ee9b3d15aa3b (patch) | |
tree | 38c62251c7a5aa2a939515048b9fcf9563932511 | |
parent | 5677c912a81cc1dc7d73543a89c2a1e06de65bba (diff) | |
download | matterbridge-msglm-4db34b0506cc7998437313efaf33ee9b3d15aa3b.tar.gz matterbridge-msglm-4db34b0506cc7998437313efaf33ee9b3d15aa3b.tar.bz2 matterbridge-msglm-4db34b0506cc7998437313efaf33ee9b3d15aa3b.zip |
Send channel_created and deleted event through message channel (mattermost)
-rw-r--r-- | matterclient/matterclient.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index f21cc068..66ffcca6 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -220,7 +220,10 @@ func (m *MMClient) WsReceiver() { } } switch msg.Raw.Event { - case model.WEBSOCKET_EVENT_USER_ADDED, model.WEBSOCKET_EVENT_USER_REMOVED: + case model.WEBSOCKET_EVENT_USER_ADDED, + model.WEBSOCKET_EVENT_USER_REMOVED, + model.WEBSOCKET_EVENT_CHANNEL_CREATED, + model.WEBSOCKET_EVENT_CHANNEL_DELETED: m.MessageChan <- msg continue } |