UBERF-5017: show correct collaborators diff and dont send notification for collaborators changer (#4529)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-02-05 21:35:49 +07:00
committed by GitHub
parent 8c45af8d88
commit 5d945aedc1
3 changed files with 65 additions and 11 deletions
@@ -117,9 +117,9 @@ export async function isShouldNotify (
)
const personAccount = await getPersonAccountById(user, control)
const modifiedAccount = await getPersonAccountById(tx.modifiedBy, control)
for (const type of types) {
const modifiedAccount = await getPersonAccountById(tx.modifiedBy, control)
if (
type.allowedForAuthor !== true &&
(tx.modifiedBy === user ||