GH-9608: Add GetUsersInChannel to plugin API (#9643)
* add GetUsersInChannel to plugin api * compute offset value instead of page * Add version comment
Этот коммит содержится в:
коммит произвёл
Jesse Hallam
родитель
819ab451f1
Коммит
77f3da1eaf
@@ -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)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user