Added ephemeral messages sent when a user mentions someone not in the channel

Этот коммит содержится в:
hmhealey
2016-02-02 10:52:18 -05:00
родитель db13b7a3ca
Коммит fcb92fa1b5
8 изменённых файлов: 73 добавлений и 14 удалений

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

@@ -101,6 +101,9 @@ func ShouldSendEvent(webCon *WebConn, msg *model.Message) bool {
return false
} else if msg.Action == model.ACTION_PREFERENCE_CHANGED {
return false
} else if msg.Action == model.ACTION_EPHEMERAL_MESSAGE {
// For now, ephemeral messages are sent directly to individual users
return false
}
// Only report events to a user who is the subject of the event, or is in the channel of the event