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.

fix: add collabration cursor (#865)

zuomeng wang036e514eb514
diff --git a/packages/data-center/src/provider/affine/affine.ts b/packages/data-center/src/provider/affine/affine.ts
index b4627de081..354d08a407 100644
--- a/packages/data-center/src/provider/affine/affine.ts
+++ b/packages/data-center/src/provider/affine/affine.ts
@@ -173,6 +173,8 @@ export class AffineProvider extends BaseProvider {
}://${window.location.host}/api/sync/`;
ws = new WebsocketProvider(wsUrl, room, doc, {
params: { token: this._apis.token.refresh },
+ // @ts-expect-error ignore the type
+ awareness: workspace.awarenessStore.awareness,
});
this._wsMap.set(workspace, ws);
}