How sync works
Notes are saved on the device first, and sent to the server whenever there is a connection.
Offline edits
- Every edit carries a version number.
- The server keeps the higher one, in
NoteStore.merge. - The other copy is kept as a conflict, never thrown away.
Two phones editing the same note offline is the case to test first.
When it fails
A note that cannot be sent stays marked in the list until it goes through.