Skip to content

Commit

Permalink
Fix problem when self-assign notification (go-gitea#18797)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Feb 18, 2022
1 parent 6767798 commit a7b9d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/notification/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,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 {
opts := issueNotificationOpts{
IssueID: issue.ID,
NotificationAuthorID: doer.ID,
Expand Down

0 comments on commit a7b9d44

Please sign in to comment.