Add GetTeamsUnreadForUser to plugin api (#9659)

* Add GetTeamsUnreadForUser to plugin api

* Remove teamIdToExclude from plugin method GetTeamsUnreadForUser

* Add minimum server version to plugin API doc of GetTeamsUnreadForUser
Этот коммит содержится в:
Christian Claus
2018-11-07 20:23:02 +01:00
коммит произвёл Hanzei
родитель ecade2f1ec
Коммит 6d4421d18a
4 изменённых файлов: 63 добавлений и 0 удалений

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

@@ -106,6 +106,11 @@ type API interface {
// GetTeamByName gets a team by its name.
GetTeamByName(name string) (*model.Team, *model.AppError)
// GetTeamsUnreadForUser gets the unread message and mention counts for each team to which the given user belongs.
//
// Minimum server version: 5.6
GetTeamsUnreadForUser(userId string) ([]*model.TeamUnread, *model.AppError)
// UpdateTeam updates a team.
UpdateTeam(team *model.Team) (*model.Team, *model.AppError)