summaryrefslogtreecommitdiffstats
path: root/app/plugin_api.go
diff options
context:
space:
mode:
authorAkash Srivastava <akashsrivastava4927@gmail.com>2018-10-04 01:37:54 +0530
committerJoram Wilander <jwawilander@gmail.com>2018-10-03 16:07:54 -0400
commit8de9a61f7ffd570312fd05c5e6986f9d21ab0063 (patch)
treeb087573982019f52e4287a38fb6428c21e53a33b /app/plugin_api.go
parent8c03e584c182218c84bebc8af23c70fb0cd203d4 (diff)
downloadchat-8de9a61f7ffd570312fd05c5e6986f9d21ab0063.tar.gz
chat-8de9a61f7ffd570312fd05c5e6986f9d21ab0063.tar.bz2
chat-8de9a61f7ffd570312fd05c5e6986f9d21ab0063.zip
Add GetChannelMembers method to plugin API (#9525)
Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
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 fed4ad027..fc7adbcd9 100644
--- a/app/plugin_api.go
+++ b/app/plugin_api.go
@@ -262,6 +262,10 @@ func (api *PluginAPI) GetChannelMember(channelId, userId string) (*model.Channel
return api.app.GetChannelMember(channelId, userId)
}
+func (api *PluginAPI) GetChannelMembers(channelId string, page, perPage int) (*model.ChannelMembers, *model.AppError) {
+ return api.app.GetChannelMembersPage(channelId, page, perPage)
+}
+
func (api *PluginAPI) UpdateChannelMemberRoles(channelId, userId, newRoles string) (*model.ChannelMember, *model.AppError) {
return api.app.UpdateChannelMemberRoles(channelId, userId, newRoles)
}