Merge pull request #239 from nickago/MM-1295

MM-1295 Removal from a channel occurs in real time
This commit is contained in:
Christopher Speller
2015-07-28 08:49:29 -04:00
6 changed files with 91 additions and 0 deletions

View File

@@ -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)