Commit eadd99d
committed
fix(sync): Reset document sessions on upgrade
A bug in synchronizing the document state might have resulted in a Yjs
document state with missing steps being persisted into the Ydoc that we
store on the server. If no client that had the missing step did an
autosave afterwards, future sync session members will never recover from
this situation.
We implemented several improvements recently that should result in less
out-of-sync situations where a step becomes missing. To start with fresh
editing sessions and not carry on with possibly unrecoverable document
states, let's reset all editing sessions with the next app update.
See #7692 for further context.
Signed-off-by: Jonas <jonas@freesources.org>1 parent e4f2a80 commit eadd99d
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments