mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge pull request #239 from nickago/MM-1295
MM-1295 Removal from a channel occurs in real time
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user