summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-07-28 08:49:29 -0400
committerChristopher Speller <crspeller@gmail.com>2015-07-28 08:49:29 -0400
commitde07cdaf299604abed78fcef1c0f9dcfa8835c63 (patch)
tree4684e39c807b2164719e379291d13d9ee8675bca /api/channel.go
parent432e96f52c3c29f2ffa5d4ad50fbbdda5322f0a9 (diff)
parentda6d3556e83b54472f1caa7777ce223988c0655c (diff)
downloadchat-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.go5
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)