From a7b9d44d8842a5a1c82a180215536da647077f68 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 18 Feb 2022 14:06:57 +0800 Subject: [PATCH] Fix problem when self-assign notification (#18797) --- 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 a27c5f699cbc5..7f6bfa398e3e3 100644 --- a/modules/notification/ui/ui.go +++ b/modules/notification/ui/ui.go @@ -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,