[dsmp] filter notifying authors on their actions (#28429)

GitOrigin-RevId: c1186c84d9b1e885081ba2ea30cbdb6277192bc0
This commit is contained in:
Domagoj Kriskovic
2025-09-18 12:08:03 +02:00
committed by Copybot
parent f4dce55ee9
commit 34ea7058a1

View File

@@ -203,7 +203,7 @@ async function clearProjectState(projectId) {
* @param {string} docId
* @param {string[]} changeIds
*/
async function acceptChanges(projectId, docId, changeIds) {
async function acceptChanges(projectId, docId, changeIds, userId) {
await fetchNothing(
`${BASE_URL}/project/${projectId}/doc/${docId}/change/accept`,
{
@@ -212,7 +212,8 @@ async function acceptChanges(projectId, docId, changeIds) {
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS),
}
)
await Modules.promises.hooks.fire('changesAccepted', projectId, docId)
await Modules.promises.hooks.fire('changesAccepted', projectId, docId, userId)
}
/**