Browse Source

Fix problem when self-assign notification (#18797) (#18976)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
tags/v1.16.3
Otto Richter (fnetX) 3 years ago committed by GitHub
parent
commit
a3f72303d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/notification/ui/ui.go

2
modules/notification/ui/ui.go

@ -204,7 +204,7 @@ func (ns *notificationService) NotifyPullRevieweDismiss(doer *user_model.User, r
}
func (ns *notificationService) NotifyIssueChangeAssignee(doer *user_model.User, issue *models.Issue, assignee *user_model.User, removed bool, comment *models.Comment) {
if !removed {
if !removed && doer.ID != assignee.ID {
var opts = issueNotificationOpts{
IssueID: issue.ID,
NotificationAuthorID: doer.ID,

Loading…
Cancel
Save