add GetChannelsForTeamForUser to plugin api (#9646)

Этот коммит содержится в:
Daniel Hodan
2018-10-15 18:27:45 +02:00
коммит произвёл Christopher Speller
родитель 3087f0bc4c
Коммит a35a9b9b2d
4 изменённых файлов: 63 добавлений и 0 удалений

Просмотреть файл

@@ -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)
}