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 16:53:35 +07:00
committed by GitHub
parent 95568ef948
commit 1f966a36c1
@@ -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)