summaryrefslogtreecommitdiffstats
path: root/model/post.go
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2018-03-27 21:14:42 +0800
committerGitHub <noreply@github.com>2018-03-27 21:14:42 +0800
commit07b14c370a6c911c89e1812bc796a445e5223604 (patch)
treed8ad9a5373db49c10d347bd8e2ea06b9cd5c8fed /model/post.go
parent9e6db178b09387e21ac19ce85369cf1ca7a443e8 (diff)
downloadchat-07b14c370a6c911c89e1812bc796a445e5223604.tar.gz
chat-07b14c370a6c911c89e1812bc796a445e5223604.tar.bz2
chat-07b14c370a6c911c89e1812bc796a445e5223604.zip
post a system message after a channel is converted from public to private (#8501)
Diffstat (limited to 'model/post.go')
-rw-r--r--model/post.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/model/post.go b/model/post.go
index ae0627a03..09303c0cd 100644
--- a/model/post.go
+++ b/model/post.go
@@ -33,6 +33,7 @@ const (
POST_REMOVE_FROM_TEAM = "system_remove_from_team"
POST_HEADER_CHANGE = "system_header_change"
POST_DISPLAYNAME_CHANGE = "system_displayname_change"
+ POST_CONVERT_CHANNEL = "system_convert_channel"
POST_PURPOSE_CHANGE = "system_purpose_change"
POST_CHANNEL_DELETED = "system_channel_deleted"
POST_EPHEMERAL = "system_ephemeral"
@@ -207,6 +208,7 @@ func (o *Post) IsValid(maxPostSize int) *AppError {
POST_HEADER_CHANGE,
POST_PURPOSE_CHANGE,
POST_DISPLAYNAME_CHANGE,
+ POST_CONVERT_CHANNEL,
POST_CHANNEL_DELETED,
POST_CHANGE_CHANNEL_PRIVACY:
default: