diff options
author | Jason Mojica <jason@jasonmojica.net> | 2018-10-15 12:23:46 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2018-10-15 09:23:46 -0700 |
commit | 9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912 (patch) | |
tree | 9cdbb6cdfc47af901e6cfd055af3c140781638c9 /app | |
parent | 9385dc750d59a4dcac168cbdba926892a467ad1d (diff) | |
download | chat-9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912.tar.gz chat-9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912.tar.bz2 chat-9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912.zip |
Add SearchChannels plugin api (#9657)
Diffstat (limited to 'app')
-rw-r--r-- | app/plugin_api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/plugin_api.go b/app/plugin_api.go index 4b2fa0447..f3d588e08 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -245,6 +245,10 @@ func (api *PluginAPI) UpdateChannel(channel *model.Channel) (*model.Channel, *mo return api.app.UpdateChannel(channel) } +func (api *PluginAPI) SearchChannels(teamId string, term string) (*model.ChannelList, *model.AppError) { + return api.app.SearchChannels(teamId, term) +} + func (api *PluginAPI) AddChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError) { // For now, don't allow overriding these via the plugin API. userRequestorId := "" |