Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Publish mutation created event on file create

Hakan Shehub264632c6329
diff --git a/apps/desktop/src/main/mutations/files/file-create.ts b/apps/desktop/src/main/mutations/files/file-create.ts
index 2d076849..59e73515 100644
--- a/apps/desktop/src/main/mutations/files/file-create.ts
+++ b/apps/desktop/src/main/mutations/files/file-create.ts
@@ -168,6 +168,11 @@ export class FileCreateMutationHandler
file: mapFile(createdFile),
});
+ eventBus.publish({
+ type: 'mutation_created',
+ userId: input.userId,
+ });
+
eventBus.publish({
type: 'file_state_created',
userId: input.userId,