Skip to content

Commit a7b9d44

Browse files
authored
Fix problem when self-assign notification (#18797)
1 parent 6767798 commit a7b9d44

File tree

1 file changed

+1
-1
lines changed
  • modules/notification/ui

1 file changed

+1
-1
lines changed

modules/notification/ui/ui.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (ns *notificationService) NotifyPullRevieweDismiss(doer *user_model.User, r
203203
}
204204

205205
func (ns *notificationService) NotifyIssueChangeAssignee(doer *user_model.User, issue *models.Issue, assignee *user_model.User, removed bool, comment *models.Comment) {
206-
if !removed {
206+
if !removed && doer.ID != assignee.ID {
207207
opts := issueNotificationOpts{
208208
IssueID: issue.ID,
209209
NotificationAuthorID: doer.ID,

0 commit comments

Comments
 (0)