Send channel_created and deleted event through message channel (mattermost)

This commit is contained in:
Wim 2019-04-13 21:52:39 +02:00
parent 5677c912a8
commit 4db34b0506
1 changed files with 4 additions and 1 deletions

View File

@ -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
}