[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
Этот коммит содержится в:
Saturnino Abril
2017-11-01 03:48:58 +08:00
коммит произвёл Joram Wilander
родитель 3024525c3b
Коммит 709ef99eca
5 изменённых файлов: 61 добавлений и 16 удалений

Просмотреть файл

@@ -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)