diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-07 18:13:14 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-07 18:13:14 -0500 |
commit | 7d4a9ad376cf346826ab13b7c0d4eec60eb5cb7d (patch) | |
tree | f3e456a67acd229d7d770ead1e9d637bd75f63da /api/web_team_hub.go | |
parent | b06f11fd632f146a204b4ef1357a8c099bade072 (diff) | |
download | chat-7d4a9ad376cf346826ab13b7c0d4eec60eb5cb7d.tar.gz chat-7d4a9ad376cf346826ab13b7c0d4eec60eb5cb7d.tar.bz2 chat-7d4a9ad376cf346826ab13b7c0d4eec60eb5cb7d.zip |
Added preference_changed web socket event
Diffstat (limited to 'api/web_team_hub.go')
-rw-r--r-- | api/web_team_hub.go | 4 |
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 |