GH-9608: Add GetUsersInChannel to plugin API (#9643)

* add GetUsersInChannel to plugin api

* compute offset value instead of page

* Add version comment
Этот коммит содержится в:
Daniel Hodan
2018-10-17 23:06:14 +02:00
коммит произвёл Jesse Hallam
родитель 819ab451f1
Коммит 77f3da1eaf
4 изменённых файлов: 65 добавлений и 0 удалений

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

@@ -294,6 +294,10 @@ func (api *PluginAPI) DeleteChannelMember(channelId, userId string) *model.AppEr
return api.app.LeaveChannel(channelId, userId)
}
func (api *PluginAPI) GetUsersInChannel(channelId string, page int, perPage int) ([]*model.User, *model.AppError) {
return api.app.GetUsersInChannel(channelId, page*perPage, perPage)
}
func (api *PluginAPI) CreatePost(post *model.Post) (*model.Post, *model.AppError) {
return api.app.CreatePostMissingChannel(post, true)
}