aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/host.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/host.rs')
-rw-r--r--src/state/host.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/state/host.rs b/src/state/host.rs
index 8522657..5b52e1d 100644
--- a/src/state/host.rs
+++ b/src/state/host.rs
@@ -590,7 +590,11 @@ impl Host for AppState {
Some(&mut replica.signatures),
&mut crate::document::PatchLog::inactive(),
)
- .map(|_| ())
+ .map(|outcome| {
+ if let Some(actor) = outcome.fresh_actor {
+ state.remake.add_own_actor(actor);
+ }
+ })
.map_err(|error| format!("{error:#}"))
};
replica.refresh_heads();