summaryrefslogtreecommitdiffstats
path: root/model/post.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2016-02-02 10:52:18 -0500
committerhmhealey <harrisonmhealey@gmail.com>2016-02-04 11:38:56 -0500
commitfcb92fa1b53a2b67323a881e7cb03965d3ec24d1 (patch)
treef9e9c4470fdb98c558ba6db4e5ebb08fc2a4a617 /model/post.go
parentdb13b7a3ca3d3099392be557e47f838a7851a69a (diff)
downloadchat-fcb92fa1b53a2b67323a881e7cb03965d3ec24d1.tar.gz
chat-fcb92fa1b53a2b67323a881e7cb03965d3ec24d1.tar.bz2
chat-fcb92fa1b53a2b67323a881e7cb03965d3ec24d1.zip
Added ephemeral messages sent when a user mentions someone not in the channel
Diffstat (limited to 'model/post.go')
-rw-r--r--model/post.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/model/post.go b/model/post.go
index f9f5a4d1c..cc9b0bda4 100644
--- a/model/post.go
+++ b/model/post.go
@@ -10,11 +10,12 @@ import (
)
const (
- POST_SYSTEM_MESSAGE_PREFIX = "system_"
- POST_DEFAULT = ""
- POST_SLACK_ATTACHMENT = "slack_attachment"
- POST_JOIN_LEAVE = "system_join_leave"
- POST_HEADER_CHANGE = "system_header_change"
+ POST_SYSTEM_MESSAGE_PREFIX = "system_"
+ POST_DEFAULT = ""
+ POST_SLACK_ATTACHMENT = "slack_attachment"
+ POST_JOIN_LEAVE = "system_join_leave"
+ POST_HEADER_CHANGE = "system_header_change"
+ POST_OUT_OF_CHANNEL_MENTION = "system_out_of_channel_mention"
)
type Post struct {
@@ -33,6 +34,7 @@ type Post struct {
Hashtags string `json:"hashtags"`
Filenames StringArray `json:"filenames"`
PendingPostId string `json:"pending_post_id" db:"-"`
+ Ephemeral bool `json:"ephemeral" db:"-"`
}
func (o *Post) ToJson() string {