MM-18816 Adding ability to add users as another user to the plugin API. (#12562)

* Adding ability to add users as anouther user to the plugin API.

* Documentation feedback.
Этот коммит содержится в:
Christopher Speller
2019-10-17 16:11:26 -07:00
коммит произвёл GitHub
родитель d7ee3553fa
Коммит e62471dff6
5 изменённых файлов: 87 добавлений и 1 удалений

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

@@ -336,11 +336,18 @@ type API interface {
// Minimum server version: 5.10
SearchPostsInTeam(teamId string, paramsList []*model.SearchParams) ([]*model.Post, *model.AppError)
// AddChannelMember creates a channel membership for a user.
// AddChannelMember joins a user to a channel (as if they joined themselves)
// This means the user will not receive notifications for joining the channel.
//
// Minimum server version: 5.2
AddChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError)
// AddUserToChannel adds a user to a channel as if the specified user had invited them.
// This means the user will receive the regular notifications for being added to the channel.
//
// Minimum server version: 5.18
AddUserToChannel(channelId, userId, asUserId string) (*model.ChannelMember, *model.AppError)
// GetChannelMember gets a channel membership for a user.
//
// Minimum server version: 5.2