From 709ef99eca0353585eb00c795cc36f39bac29a1f Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Wed, 1 Nov 2017 03:48:58 +0800 Subject: [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 --- api/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/channel.go') 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) -- cgit v1.2.3-1-g7c22