Don't send self assignee notification (#2893)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-04-05 15:53:35 +06:00 committed by GitHub
parent 95568ef948
commit 1f966a36c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ export async function addAssigneeNotification (
if (receiver === undefined) {
return
}
if (sender._id === receiver._id) return
const result = await createNotificationTxes(control, ptx, task.ids.AssigneedNotification, issue, sender, receiver)