summaryrefslogtreecommitdiffstats
path: root/matterclient/matterclient.go
diff options
context:
space:
mode:
Diffstat (limited to 'matterclient/matterclient.go')
-rw-r--r--matterclient/matterclient.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index 18006c7a..f21cc068 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -216,9 +216,14 @@ func (m *MMClient) WsReceiver() {
if msg.Post != nil {
if msg.Text != "" || len(msg.Post.FileIds) > 0 || msg.Post.Type == "slack_attachment" {
m.MessageChan <- msg
+ continue
}
}
- continue
+ switch msg.Raw.Event {
+ case model.WEBSOCKET_EVENT_USER_ADDED, model.WEBSOCKET_EVENT_USER_REMOVED:
+ m.MessageChan <- msg
+ continue
+ }
}
var response model.WebSocketResponse