[MM-14588] Don't mark the channel as read when adding a member (#10680)

* add flag whether to mark channel as viewed for the requesting user

* remove marking channel as viewed when adding user to a channel
Этот коммит содержится в:
Saturnino Abril
2019-04-27 07:22:12 +08:00
коммит произвёл GitHub
родитель d144cc0e65
Коммит 7e590c7efe
7 изменённых файлов: 10 добавлений и 14 удалений

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

@@ -1182,7 +1182,7 @@ func addChannelMember(c *Context, w http.ResponseWriter, r *http.Request) {
}
}
cm, err := c.App.AddChannelMember(member.UserId, channel, c.App.Session.UserId, postRootId, c.App.Session.Id)
cm, err := c.App.AddChannelMember(member.UserId, channel, c.App.Session.UserId, postRootId)
if err != nil {
c.Err = err
return