summaryrefslogtreecommitdiffstats
path: root/model/post.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2018-01-10 14:22:51 -0500
committerStephen Kiers <stephen@stephenkiers.com>2018-01-10 12:22:51 -0700
commit90abd76d3fe4cf1ad88a74cf77eb3ec2b18a7198 (patch)
treed6c0522d4aec4886e8f1e8b58664dee7f2e904ef /model/post.go
parentedc4c35f5f612aea9956779df57ca6e5422f0601 (diff)
downloadchat-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/post.go')
-rw-r--r--model/post.go8
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,