From a3f72303d1ffe959fbb5c3e156f061e38d573b12 Mon Sep 17 00:00:00 2001 From: "Otto Richter (fnetX)" Date: Wed, 2 Mar 2022 21:11:55 +0100 Subject: [PATCH] Fix problem when self-assign notification (#18797) (#18976) Co-authored-by: Lunny Xiao --- modules/notification/ui/ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/notification/ui/ui.go b/modules/notification/ui/ui.go index fd44cd15fd02..8461707120d3 100644 --- a/modules/notification/ui/ui.go +++ b/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,