Skip to content

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

Fix a condition for node sync

Hakan Shehuf17c448999d2
diff --git a/desktop/src/electron/workspace-manager.ts b/desktop/src/electron/workspace-manager.ts
index e0881fc7..95b25a9e 100644
--- a/desktop/src/electron/workspace-manager.ts
+++ b/desktop/src/electron/workspace-manager.ts
@@ -411,19 +411,6 @@ export class WorkspaceManager {
return false;
}
- if (localNode.updated_at) {
- if (!serverNode.updatedAt) {
- return false;
- }
-
- const localUpdatedAt = new Date(localNode.updated_at);
- const serverUpdatedAt = new Date(serverNode.updatedAt);
-
- if (localUpdatedAt > serverUpdatedAt) {
- return false;
- }
- }
-
return true;
}