diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-01-10 14:22:51 -0500 |
---|---|---|
committer | Stephen Kiers <stephen@stephenkiers.com> | 2018-01-10 12:22:51 -0700 |
commit | 90abd76d3fe4cf1ad88a74cf77eb3ec2b18a7198 (patch) | |
tree | d6c0522d4aec4886e8f1e8b58664dee7f2e904ef /model | |
parent | edc4c35f5f612aea9956779df57ca6e5422f0601 (diff) | |
download | chat-90abd76d3fe4cf1ad88a74cf77eb3ec2b18a7198.tar.gz chat-90abd76d3fe4cf1ad88a74cf77eb3ec2b18a7198.tar.bz2 chat-90abd76d3fe4cf1ad88a74cf77eb3ec2b18a7198.zip |
PLT-8522 Added separate messages for being removed from channel or team (#8078)
Diffstat (limited to 'model')
-rw-r--r-- | model/post.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/model/post.go b/model/post.go index 3873e6113..6b282fbfa 100644 --- a/model/post.go +++ b/model/post.go @@ -24,8 +24,9 @@ const ( POST_LEAVE_TEAM = "system_leave_team" POST_ADD_REMOVE = "system_add_remove" // Deprecated, use POST_ADD_TO_CHANNEL or POST_REMOVE_FROM_CHANNEL instead POST_ADD_TO_CHANNEL = "system_add_to_channel" - POST_ADD_TO_TEAM = "system_add_to_team" POST_REMOVE_FROM_CHANNEL = "system_remove_from_channel" + POST_ADD_TO_TEAM = "system_add_to_team" + POST_REMOVE_FROM_TEAM = "system_remove_from_team" POST_HEADER_CHANGE = "system_header_change" POST_DISPLAYNAME_CHANGE = "system_displayname_change" POST_PURPOSE_CHANGE = "system_purpose_change" @@ -177,11 +178,12 @@ func (o *Post) IsValid() *AppError { POST_ADD_REMOVE, POST_JOIN_CHANNEL, POST_LEAVE_CHANNEL, + POST_JOIN_TEAM, POST_LEAVE_TEAM, - POST_REMOVE_FROM_CHANNEL, POST_ADD_TO_CHANNEL, + POST_REMOVE_FROM_CHANNEL, POST_ADD_TO_TEAM, - POST_JOIN_TEAM, + POST_REMOVE_FROM_TEAM, POST_SLACK_ATTACHMENT, POST_HEADER_CHANGE, POST_PURPOSE_CHANGE, |