An open-source, self-hosted system for apps built with web technologies.
Preserve Client projection identity
zohayrslilehb0723b44e034
diff --git a/source/client/core/link-manager/auth-manager/process-manager/process.ts b/source/client/core/link-manager/auth-manager/process-manager/process.tsindex 099fc59..990fa6f 100644--- a/source/client/core/link-manager/auth-manager/process-manager/process.ts+++ b/source/client/core/link-manager/auth-manager/process-manager/process.ts@@ -90,7 +90,20 @@ export default class Process {public clientStarted(payload: TransmittedProcess) {- if (payload.client) this.client = new ClientState(this.processManager, this.identity, payload.client)+ if (!payload.client) return++ // A Process creation snapshot already contains every endpoint that is+ // live at birth. Its following lifecycle announcement describes that+ // same Client; it must update the existing projection rather than+ // inventing a second local incarnation for the Window Manager.+ if (this.client) {++ this.client.window.follow(payload.client.window)++ return+ }++ this.client = new ClientState(this.processManager, this.identity, payload.client)}public clientStopped() {