Added preference_changed web socket event

Этот коммит содержится в:
hmhealey
2015-12-07 18:13:14 -05:00
родитель b06f11fd63
Коммит 7d4a9ad376
6 изменённых файлов: 40 добавлений и 13 удалений

Просмотреть файл

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