summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorFlorian Orben <florian.orben@gmail.com>2015-12-04 03:39:37 +0100
committerFlorian Orben <florian.orben@gmail.com>2015-12-04 03:39:37 +0100
commit18d29a19e5ec7e4b52a79ec77bff6cc9a63cd5e9 (patch)
tree6426d835326b033ecb66b5827988b28ae75dd5cd /model
parent14d1ec5191867174837e15f616ad3fc1dc8e0dae (diff)
downloadchat-18d29a19e5ec7e4b52a79ec77bff6cc9a63cd5e9.tar.gz
chat-18d29a19e5ec7e4b52a79ec77bff6cc9a63cd5e9.tar.bz2
chat-18d29a19e5ec7e4b52a79ec77bff6cc9a63cd5e9.zip
PLT-1380: Post system message when user updates channel header
Diffstat (limited to 'model')
-rw-r--r--model/post.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/model/post.go b/model/post.go
index 2c90d8b7b..5c86ce70d 100644
--- a/model/post.go
+++ b/model/post.go
@@ -14,6 +14,7 @@ const (
POST_DEFAULT = ""
POST_SLACK_ATTACHMENT = "slack_attachment"
POST_JOIN_LEAVE = "system_join_leave"
+ POST_HEADER_CHANGE = "system_header_change"
)
type Post struct {
@@ -105,7 +106,7 @@ func (o *Post) IsValid() *AppError {
}
// should be removed once more message types are supported
- if !(o.Type == POST_DEFAULT || o.Type == POST_JOIN_LEAVE || o.Type == POST_SLACK_ATTACHMENT) {
+ if !(o.Type == POST_DEFAULT || o.Type == POST_JOIN_LEAVE || o.Type == POST_SLACK_ATTACHMENT || o.Type == POST_HEADER_CHANGE) {
return NewAppError("Post.IsValid", "Invalid type", "id="+o.Type)
}