Skip to content

Commit eadd99d

Browse files
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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- **💾 Open format:** Files are saved as [Markdown](https://en.wikipedia.org/wiki/Markdown), so you can edit them from any other text app too.
1616
- **✊ Strong foundation:** We use [🐈 tiptap](https://tiptap.scrumpy.io) which is based on [🦉 ProseMirror](https://prosemirror.net) – huge thanks to them!
1717
]]></description>
18-
<version>6.0.0</version>
18+
<version>6.0.1</version>
1919
<licence>agpl</licence>
2020
<author mail="jus@bitgrid.net">Julius Härtl</author>
2121
<namespace>Text</namespace>

lib/Migration/ResetSessionsBeforeYjs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getName(): string {
2929
public function run(IOutput $output): void {
3030
$appVersion = $this->config->getValueString('text', 'installed_version');
3131

32-
if (!$appVersion || version_compare($appVersion, '4.0.1') !== -1) {
32+
if (!$appVersion || version_compare($appVersion, '6.0.1') !== -1) {
3333
return;
3434
}
3535

0 commit comments

Comments
 (0)