fix(workspace): filter awareness from other workspace (#5093)

This commit is contained in:
EYHN
2023-11-28 16:47:45 +08:00
committed by GitHub
parent 992ed89a89
commit 2acb219dcc
@@ -24,13 +24,13 @@ export function createAffineAwarenessProvider(
const socket = getIoManager().socket('/');
const awarenessBroadcast = ({
workspaceId,
workspaceId: remoteWorkspaceId,
awarenessUpdate,
}: {
workspaceId: string;
awarenessUpdate: string;
}) => {
if (workspaceId !== workspaceId) {
if (remoteWorkspaceId !== workspaceId) {
return;
}
applyAwarenessUpdate(