summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-12-07 18:13:14 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-12-07 18:13:14 -0500
commit7d4a9ad376cf346826ab13b7c0d4eec60eb5cb7d (patch)
treef3e456a67acd229d7d770ead1e9d637bd75f63da /api
parentb06f11fd632f146a204b4ef1357a8c099bade072 (diff)
downloadchat-7d4a9ad376cf346826ab13b7c0d4eec60eb5cb7d.tar.gz
chat-7d4a9ad376cf346826ab13b7c0d4eec60eb5cb7d.tar.bz2
chat-7d4a9ad376cf346826ab13b7c0d4eec60eb5cb7d.zip
Added preference_changed web socket event
Diffstat (limited to 'api')
-rw-r--r--api/web_team_hub.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/web_team_hub.go b/api/web_team_hub.go
index 6a25b7d3d..2c2386317 100644
--- a/api/web_team_hub.go
+++ b/api/web_team_hub.go
@@ -95,9 +95,11 @@ func ShouldSendEvent(webCon *WebConn, msg *model.Message) bool {
return false
}
} else {
- // Don't share a user's view events with other users
+ // Don't share a user's view or preference events with other users
if msg.Action == model.ACTION_CHANNEL_VIEWED {
return false
+ } else if msg.Action == model.ACTION_PREFERENCE_CHANGED {
+ return false
}
// Only report events to a user who is the subject of the event, or is in the channel of the event