Skip to content

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

Public workspace create event on sync

Hakan Shehu8587ebf704a1
diff --git a/apps/desktop/src/main/services/accounts/account-service.ts b/apps/desktop/src/main/services/accounts/account-service.ts
index cb4a72ec..335e337f 100644
--- a/apps/desktop/src/main/services/accounts/account-service.ts
+++ b/apps/desktop/src/main/services/accounts/account-service.ts
@@ -299,6 +299,11 @@ export class AccountService {
const mappedWorkspace = mapWorkspace(createdWorkspace);
await this.initWorkspace(mappedWorkspace);
+
+ eventBus.publish({
+ type: 'workspace_created',
+ workspace: mappedWorkspace,
+ });
} else {
const updatedWorkspace = await this.database
.updateTable('workspaces')