summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDaniel Hodan <daniel.hodan@czertbytes.de>2018-10-15 18:27:45 +0200
committerChristopher Speller <crspeller@gmail.com>2018-10-15 09:27:45 -0700
commita35a9b9b2d9720a3753c96a4a3a36d437e518140 (patch)
treeaf227ccb050f73335a901b16f85084ff1b15286b /app
parent3087f0bc4c81a11ab3ecc08d3a37ea3d0dfda390 (diff)
downloadchat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.tar.gz
chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.tar.bz2
chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.zip
add GetChannelsForTeamForUser to plugin api (#9646)
Diffstat (limited to 'app')
-rw-r--r--app/plugin_api.go4
1 files changed, 4 insertions, 0 deletions
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)
}