inform participants on UI too (#10473)

* inform participants on UI too

* ajust test

* refactor getParticipantIDsByIssue
This commit is contained in:
6543
2020-02-28 09:16:41 +01:00
committed by GitHub
parent 513b962c1d
commit 694f44660f
5 changed files with 54 additions and 28 deletions

View File

@ -704,7 +704,7 @@ func ViewIssue(ctx *context.Context) {
iw = &models.IssueWatch{
UserID: ctx.User.ID,
IssueID: issue.ID,
IsWatching: models.IsWatching(ctx.User.ID, ctx.Repo.Repository.ID),
IsWatching: models.IsWatching(ctx.User.ID, ctx.Repo.Repository.ID) || models.IsUserParticipantsOfIssue(ctx.User, issue),
}
}
}