diff --git a/src/replication/downstream.ts b/src/replication/downstream.ts index 5c586fd7c27..bf2c3ede013 100644 --- a/src/replication/downstream.ts +++ b/src/replication/downstream.ts @@ -16,6 +16,7 @@ import type { import { createRevision, ensureNotFalsy, + flatClone, getDefaultRevision, getDefaultRxDocumentMeta, now, @@ -339,7 +340,7 @@ export function startReplicationDownstream( {}, masterState, forkStateFullDoc ? { - _meta: forkStateFullDoc._meta, + _meta: flatClone(forkStateFullDoc._meta), _attachments: {}, _rev: getDefaultRevision() } : {