summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-22 15:12:50 -0700
committernickago <ngonella@calpoly.edu>2015-07-27 14:07:23 -0700
commited70db18611331de99b2a86b580947e56d0cb7e5 (patch)
treefb89244f627ecaa8ead8ae00f3ddf34f96477a19 /api
parentc9459feb59a3dc05de229aea7652b0a726ac98bf (diff)
downloadchat-ed70db18611331de99b2a86b580947e56d0cb7e5.tar.gz
chat-ed70db18611331de99b2a86b580947e56d0cb7e5.tar.bz2
chat-ed70db18611331de99b2a86b580947e56d0cb7e5.zip
When user is removed, a modal appears, which on closing redirects the
user to town square.
Diffstat (limited to 'api')
-rw-r--r--api/channel.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/channel.go b/api/channel.go
index a05aa0a3c..123fd8a35 100644
--- a/api/channel.go
+++ b/api/channel.go
@@ -712,6 +712,7 @@ func removeChannelMember(c *Context, w http.ResponseWriter, r *http.Request) {
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)