Skip to content

Commit a3f7230

Browse files
fnetXlunny
andauthored
Fix problem when self-assign notification (#18797) (#18976)
Co-authored-by: Lunny Xiao <[email protected]>
1 parent 4317806 commit a3f7230

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

modules/notification/ui/ui.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (ns *notificationService) NotifyPullRevieweDismiss(doer *user_model.User, r
204204
}
205205

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

0 commit comments

Comments
 (0)