diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-07-28 08:49:29 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-07-28 08:49:29 -0400 |
commit | de07cdaf299604abed78fcef1c0f9dcfa8835c63 (patch) | |
tree | 4684e39c807b2164719e379291d13d9ee8675bca /api/channel.go | |
parent | 432e96f52c3c29f2ffa5d4ad50fbbdda5322f0a9 (diff) | |
parent | da6d3556e83b54472f1caa7777ce223988c0655c (diff) | |
download | chat-de07cdaf299604abed78fcef1c0f9dcfa8835c63.tar.gz chat-de07cdaf299604abed78fcef1c0f9dcfa8835c63.tar.bz2 chat-de07cdaf299604abed78fcef1c0f9dcfa8835c63.zip |
Merge pull request #239 from nickago/MM-1295
MM-1295 Removal from a channel occurs in real time
Diffstat (limited to 'api/channel.go')
-rw-r--r-- | api/channel.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/channel.go b/api/channel.go index 4d8dbad09..123fd8a35 100644 --- a/api/channel.go +++ b/api/channel.go @@ -710,6 +710,11 @@ func removeChannelMember(c *Context, w http.ResponseWriter, r *http.Request) { return } + message := model.NewMessage(c.Session.TeamId, "", userId, model.ACTION_USER_REMOVED) + message.Add("channel_id",id) + message.Add("remover", c.Session.UserId) + PublishAndForget(message) + c.LogAudit("name=" + channel.Name + " user_id=" + userId) result := make(map[string]string) |