summaryrefslogtreecommitdiffstats
path: root/app/plugin_api.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-12-05 09:14:03 -0500
committerGitHub <noreply@github.com>2017-12-05 09:14:03 -0500
commit7a1f81cd52c4b58a058ae11e361a80ee3b24d141 (patch)
tree8845eba3280d1ac17a0f0014979e4a995a55e023 /app/plugin_api.go
parent46f51197fb8197fe8a5468c86aad64eeab815bad (diff)
downloadchat-7a1f81cd52c4b58a058ae11e361a80ee3b24d141.tar.gz
chat-7a1f81cd52c4b58a058ae11e361a80ee3b24d141.tar.bz2
chat-7a1f81cd52c4b58a058ae11e361a80ee3b24d141.zip
Add GetChannelMember method to plugin API (#7930)
Diffstat (limited to 'app/plugin_api.go')
-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 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)
}