summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-11-01 03:48:58 +0800
committerJoram Wilander <jwawilander@gmail.com>2017-10-31 15:48:58 -0400
commit709ef99eca0353585eb00c795cc36f39bac29a1f (patch)
treeea4304506cbbe6825007d75d1c5975b661d394ab /api/channel.go
parent3024525c3b2ba8fb0f3f83223dd15fa721cca638 (diff)
downloadchat-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/channel.go')
-rw-r--r--api/channel.go2
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)