diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-11-01 03:48:58 +0800 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-10-31 15:48:58 -0400 |
commit | 709ef99eca0353585eb00c795cc36f39bac29a1f (patch) | |
tree | ea4304506cbbe6825007d75d1c5975b661d394ab /api | |
parent | 3024525c3b2ba8fb0f3f83223dd15fa721cca638 (diff) | |
download | chat-709ef99eca0353585eb00c795cc36f39bac29a1f.tar.gz chat-709ef99eca0353585eb00c795cc36f39bac29a1f.tar.bz2 chat-709ef99eca0353585eb00c795cc36f39bac29a1f.zip |
[PLT-7362] Add post' root ID to APIv4 addChannelMember to render added user (as system post) at RHS (#7730)
* add post' root ID to apiv4 addChannelMember to render added user (as system post) at RHS
* add check to post_root_id parameter
* add AddChannelMemberWithRootId function for backward compatibility
Diffstat (limited to 'api')
-rw-r--r-- | api/channel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/channel.go b/api/channel.go index f41a588ee..2782f9636 100644 --- a/api/channel.go +++ b/api/channel.go @@ -649,7 +649,7 @@ func addMember(c *Context, w http.ResponseWriter, r *http.Request) { } c.App.Go(func() { - c.App.PostAddToChannelMessage(oUser, nUser, channel) + c.App.PostAddToChannelMessage(oUser, nUser, channel, "") }) c.App.UpdateChannelLastViewedAt([]string{id}, oUser.Id) |