diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-13 13:18:50 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-27 14:07:23 -0700 |
commit | c9459feb59a3dc05de229aea7652b0a726ac98bf (patch) | |
tree | 01cd48bc40b0d9e2390182f67a9b84376281dba0 /api/channel.go | |
parent | 85ff151b71a5b0a488b7a8c3f0978b5d0ee8e280 (diff) | |
download | chat-c9459feb59a3dc05de229aea7652b0a726ac98bf.tar.gz chat-c9459feb59a3dc05de229aea7652b0a726ac98bf.tar.bz2 chat-c9459feb59a3dc05de229aea7652b0a726ac98bf.zip |
When removed from a channel, user is sent back to town square and that
channel is removed from their sidebar
Diffstat (limited to 'api/channel.go')
-rw-r--r-- | api/channel.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/channel.go b/api/channel.go index 4d8dbad09..a05aa0a3c 100644 --- a/api/channel.go +++ b/api/channel.go @@ -710,6 +710,10 @@ 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) + PublishAndForget(message) + c.LogAudit("name=" + channel.Name + " user_id=" + userId) result := make(map[string]string) |