From 8a29efed857991417d12b8e21884dbbcb53ff4a0 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 02:48:25 +0000 Subject: document: the writers a node wrote under are the document's, not a remake's The actors a node writes or wrote with in its current document (document::own::OwnWriters, AppState::own_writers) were kept by the remake state, which signing, the document file, sync and a dropped change read them from. They are the engine's: a document of a kind without writers of this sort has none, and needs no remake state for them. --- src/document/replica.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/document/replica.rs') diff --git a/src/document/replica.rs b/src/document/replica.rs index cdf789c..ba94ca9 100644 --- a/src/document/replica.rs +++ b/src/document/replica.rs @@ -493,7 +493,7 @@ fn run( /// Makes `node` the author of `doc`'s changes from now on. Setting an author gives the /// document a new actor; this node keeps its own (`with_actor`), which it tracks -/// (`RemakeState::own_actors`, the document file), as only it writes with it. +/// (`document::own::OwnWriters`, the document file), as only it writes with it. pub(crate) fn authored(doc: &mut Document, node: &str) { if doc .get_author() -- cgit v1.3.1