From 4db34b0506cc7998437313efaf33ee9b3d15aa3b Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 13 Apr 2019 21:52:39 +0200 Subject: Send channel_created and deleted event through message channel (mattermost) --- matterclient/matterclient.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3