Implement @everyone/@here (#8890)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2025-05-12 14:42:58 +07:00
committed by GitHub
parent 137260fe5b
commit 3295adee57
47 changed files with 675 additions and 351 deletions
+1 -10
View File
@@ -307,16 +307,7 @@ export async function OnToDoCreate (txes: TxCUD<Doc>[], control: TriggerControl)
const senderInfo: SenderInfo = await getSenderInfo(control.ctx, tx.modifiedBy, control)
const notificationControl = await getNotificationProviderControl(control.ctx, control)
const notifyResult = await isShouldNotifyTx(
control,
createTx,
todo,
employee._id,
socialIds,
true,
false,
notificationControl
)
const notifyResult = await isShouldNotifyTx(control, createTx, todo, receiverInfo, true, false, notificationControl)
const content = await getNotificationContent(tx, employee._id, senderInfo, todo, control)
const data: Partial<Data<CommonInboxNotification>> = {
...content,