summaryrefslogtreecommitdiffstats
path: root/matterclient/matterclient.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-04-13 21:52:39 +0200
committerWim <wim@42.be>2019-04-13 21:52:39 +0200
commit4db34b0506cc7998437313efaf33ee9b3d15aa3b (patch)
tree38c62251c7a5aa2a939515048b9fcf9563932511 /matterclient/matterclient.go
parent5677c912a81cc1dc7d73543a89c2a1e06de65bba (diff)
downloadmatterbridge-msglm-4db34b0506cc7998437313efaf33ee9b3d15aa3b.tar.gz
matterbridge-msglm-4db34b0506cc7998437313efaf33ee9b3d15aa3b.tar.bz2
matterbridge-msglm-4db34b0506cc7998437313efaf33ee9b3d15aa3b.zip
Send channel_created and deleted event through message channel (mattermost)
Diffstat (limited to 'matterclient/matterclient.go')
-rw-r--r--matterclient/matterclient.go5
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
}