diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-07-07 13:36:05 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-07-07 13:36:05 -0400 |
commit | 4e856c29b20270997ef54bdcc4260ff28390873f (patch) | |
tree | 1a99970afbfb384df22ad52e22d602926c38f972 /model | |
parent | 95b9f872882b367556ca2330eea8c8309db542e6 (diff) | |
parent | 23e527978ed3e889bebe5c879de2d4835509626a (diff) | |
download | chat-4e856c29b20270997ef54bdcc4260ff28390873f.tar.gz chat-4e856c29b20270997ef54bdcc4260ff28390873f.tar.bz2 chat-4e856c29b20270997ef54bdcc4260ff28390873f.zip |
Merge pull request #138 from hmhealey/mm756
MM-756 Don't mark channels as unread after user joined/left messages
Diffstat (limited to 'model')
-rw-r--r-- | model/post.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/model/post.go b/model/post.go index d10a9f9fc..f6f33b1e8 100644 --- a/model/post.go +++ b/model/post.go @@ -9,7 +9,8 @@ import ( ) const ( - POST_DEFAULT = "" + POST_DEFAULT = "" + POST_JOIN_LEAVE = "join_leave" ) type Post struct { @@ -100,7 +101,7 @@ func (o *Post) IsValid() *AppError { return NewAppError("Post.IsValid", "Invalid hashtags", "id="+o.Id) } - if !(o.Type == POST_DEFAULT) { + if !(o.Type == POST_DEFAULT || o.Type == POST_JOIN_LEAVE) { return NewAppError("Post.IsValid", "Invalid type", "id="+o.Type) } |