Added GETEmojilist plugin api (#9750)
* Add GetEmojiList plugin api * Fixed bug in getemojilist causing build test failure * Fix linting error * Add requested changes * Fix all conflicts
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
789b2f72dd
Коммит
f6b1ccbcb1
@@ -385,6 +385,10 @@ func (api *PluginAPI) GetProfileImage(userId string) ([]byte, *model.AppError) {
|
||||
return data, err
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetEmojiList(sortBy string, page, perPage int) ([]*model.Emoji, *model.AppError) {
|
||||
return api.app.GetEmojiList(page, perPage, sortBy)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetEmojiByName(name string) (*model.Emoji, *model.AppError) {
|
||||
return api.app.GetEmojiByName(name)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user