Skip to content

Commit 3e74f42

Browse files
committed
fix: thread delete events
1 parent 41d5dbc commit 3e74f42

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/backend/src/services/ThreadService.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ class ThreadService extends BaseService {
376376
uid,
377377
});
378378
}
379+
const parent_uid = thread.parent_uid;
379380

380381
const actor = Context.get('actor');
381382

@@ -401,9 +402,14 @@ class ThreadService extends BaseService {
401402
res.json({});
402403

403404
// Notify subscribers
404-
await this.notify_subscribers(parent_uid, 'delete', {
405+
await this.notify_subscribers(uid, 'delete', {
405406
uid,
406407
});
408+
409+
// Notify parent subscribers
410+
await this.notify_subscribers(parent_uid, 'child-delete', {
411+
parent_uid,
412+
});
407413
}
408414
}).attach(router);
409415

0 commit comments

Comments
 (0)