Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev

DiamondThree45f4c9e0e9eb
diff --cc packages/data-center/src/provider/affine/affine.ts
index 5bb3c11fd9,5abb451e62..f33080fc32
--- a/packages/data-center/src/provider/affine/affine.ts
+++ b/packages/data-center/src/provider/affine/affine.ts
@@@ -147,17 -157,10 +157,10 @@@ export class AffineProvider extends Bas
blocksuiteWorkspace: BlocksuiteWorkspace,
published = false
) {
-- const { doc, room: workspaceId } = blocksuiteWorkspace;
++ const { room: workspaceId } = blocksuiteWorkspace;
assert(workspaceId, 'Blocksuite Workspace without room(workspaceId).');
const updates = await this._apis.downloadWorkspace(workspaceId, published);
- if (updates && updates.byteLength) {
- await new Promise(resolve => {
- doc.once('update', () => {
- setTimeout(resolve, 100);
- });
- BlocksuiteWorkspace.Y.applyUpdate(doc, new Uint8Array(updates));
- });
- }
+ await applyUpdate(blocksuiteWorkspace, new Uint8Array(updates));
}
override async loadPublicWorkspace(blocksuiteWorkspace: BlocksuiteWorkspace) {