diff options
author | Daniel Hodan <daniel.hodan@czertbytes.de> | 2018-10-15 18:27:45 +0200 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2018-10-15 09:27:45 -0700 |
commit | a35a9b9b2d9720a3753c96a4a3a36d437e518140 (patch) | |
tree | af227ccb050f73335a901b16f85084ff1b15286b /plugin/api.go | |
parent | 3087f0bc4c81a11ab3ecc08d3a37ea3d0dfda390 (diff) | |
download | chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.tar.gz chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.tar.bz2 chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.zip |
add GetChannelsForTeamForUser to plugin api (#9646)
Diffstat (limited to 'plugin/api.go')
-rw-r--r-- | plugin/api.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go index 004d4c1ff..e0b3dde3c 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -128,6 +128,9 @@ type API interface { // GetChannelByNameForTeamName gets a channel by its name, given a team name. GetChannelByNameForTeamName(teamName, channelName string, includeDeleted bool) (*model.Channel, *model.AppError) + // GetChannelsForTeamForUser gets a list of channels for given user ID in given team ID. + GetChannelsForTeamForUser(teamId, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError) + // GetDirectChannel gets a direct message channel. GetDirectChannel(userId1, userId2 string) (*model.Channel, *model.AppError) |