[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 удалений

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

@@ -392,7 +392,7 @@ func (api *PluginAPI) AddChannelMember(channelId, userId string) (*model.Channel
return nil, err
}
return api.app.AddChannelMember(userId, channel, userRequestorId, postRootId, "")
return api.app.AddChannelMember(userId, channel, userRequestorId, postRootId)
}
func (api *PluginAPI) GetChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError) {