From a35a9b9b2d9720a3753c96a4a3a36d437e518140 Mon Sep 17 00:00:00 2001 From: Daniel Hodan Date: Mon, 15 Oct 2018 18:27:45 +0200 Subject: add GetChannelsForTeamForUser to plugin api (#9646) --- app/plugin_api.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') diff --git a/app/plugin_api.go b/app/plugin_api.go index 1deb45802..c57ca9eb5 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -237,6 +237,10 @@ func (api *PluginAPI) GetChannelByNameForTeamName(teamName, channelName string, return api.app.GetChannelByNameForTeamName(channelName, teamName, includeDeleted) } +func (api *PluginAPI) GetChannelsForTeamForUser(teamId, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError) { + return api.app.GetChannelsForUser(teamId, userId, includeDeleted) +} + func (api *PluginAPI) GetDirectChannel(userId1, userId2 string) (*model.Channel, *model.AppError) { return api.app.GetDirectChannel(userId1, userId2) } -- cgit v1.2.3-1-g7c22