diff options
author | George Goldberg <george@gberg.me> | 2017-01-17 20:45:18 +0000 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-01-17 15:45:18 -0500 |
commit | 0685afd1d197584e78a111934754d7111bb2dbe8 (patch) | |
tree | ed4b3ac931a027767392af4d1d1d88e13058d4a6 /model | |
parent | cdf91d8ee8d0cdd03b506f06d6c01d5aeed92e74 (diff) | |
download | chat-0685afd1d197584e78a111934754d7111bb2dbe8.tar.gz chat-0685afd1d197584e78a111934754d7111bb2dbe8.tar.bz2 chat-0685afd1d197584e78a111934754d7111bb2dbe8.zip |
PLT-2978: Add channel purpose change system message. (#5094)
Completes original patch by David Lu.
Diffstat (limited to 'model')
-rw-r--r-- | model/post.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/model/post.go b/model/post.go index 766324b4c..668c4db61 100644 --- a/model/post.go +++ b/model/post.go @@ -18,6 +18,7 @@ const ( POST_ADD_REMOVE = "system_add_remove" POST_HEADER_CHANGE = "system_header_change" POST_DISPLAYNAME_CHANGE = "system_displayname_change" + POST_PURPOSE_CHANGE = "system_purpose_change" POST_CHANNEL_DELETED = "system_channel_deleted" POST_EPHEMERAL = "system_ephemeral" POST_FILEIDS_MAX_RUNES = 150 @@ -120,7 +121,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_ADD_REMOVE || - o.Type == POST_SLACK_ATTACHMENT || o.Type == POST_HEADER_CHANGE || + o.Type == POST_SLACK_ATTACHMENT || o.Type == POST_HEADER_CHANGE || o.Type == POST_PURPOSE_CHANGE || o.Type == POST_DISPLAYNAME_CHANGE || o.Type == POST_CHANNEL_DELETED) { return NewLocAppError("Post.IsValid", "model.post.is_valid.type.app_error", nil, "id="+o.Type) } |