From 7a1f81cd52c4b58a058ae11e361a80ee3b24d141 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 5 Dec 2017 09:14:03 -0500 Subject: Add GetChannelMember method to plugin API (#7930) --- app/plugin_api.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/plugin_api.go') diff --git a/app/plugin_api.go b/app/plugin_api.go index bfe86453f..9965f770a 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -115,6 +115,10 @@ func (api *PluginAPI) UpdateChannel(channel *model.Channel) (*model.Channel, *mo return api.app.UpdateChannel(channel) } +func (api *PluginAPI) GetChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError) { + return api.app.GetChannelMember(channelId, userId) +} + func (api *PluginAPI) CreatePost(post *model.Post) (*model.Post, *model.AppError) { return api.app.CreatePostMissingChannel(post, true) } -- cgit v1.2.3-1-g7c22