From 1f966a36c19ca940faf9e1f934e56a2085687e96 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 5 Apr 2023 15:53:35 +0600 Subject: [PATCH] Don't send self assignee notification (#2893) Signed-off-by: Denis Bykhov --- server-plugins/task-resources/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server-plugins/task-resources/src/index.ts b/server-plugins/task-resources/src/index.ts index 98a90ecce5..985fbfb111 100644 --- a/server-plugins/task-resources/src/index.ts +++ b/server-plugins/task-resources/src/index.ts @@ -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)