From 07b14c370a6c911c89e1812bc796a445e5223604 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Tue, 27 Mar 2018 21:14:42 +0800 Subject: post a system message after a channel is converted from public to private (#8501) --- model/post.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'model/post.go') 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: -- cgit v1.2.3-1-g7c22