Send channel_created and deleted event through message channel (mattermost)
This commit is contained in:
parent
5677c912a8
commit
4db34b0506
|
@ -220,7 +220,10 @@ func (m *MMClient) WsReceiver() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
switch msg.Raw.Event {
|
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
|
m.MessageChan <- msg
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue