Skip to content

Prevent editing of unsynchronized notes #161

Open
@juk0de

Description

@juk0de

I like the app, but I recently found a problem that can cause loss of content (0.9.0 on Galaxy S5, Android 6.0.1). How to reproduce:

  1. Modify an existing note using the web interface (e.g. add or remove a line)
  2. Start the app and immediately start to edit the same note (before synchronization has been finished)
  3. Close the note on the app (using the "back" button)

Result: the changes made to the note using the web interface are lost and overwritten with the local changes (or the old version, if no local changes have been made).

I propose the following solution: the app should deny editing a note before synchronization has been finished! I. e. if I tap the "edit" button and the note has not yet been synchronized, instead of opening the editor with the outdated content, synchronization should be started and the editor should only be opened after the note has been synchronized. In order to indicate activity to the user, the same animation can be shown that is already used when triggering a manual synchronization (by swiping down). In case synchronization is not possible (e. g. no connection), a warning should be shown that makes it clear that all unsynchronized changes made through the web interface will be lost when the note is edited locally. What do you think?

Metadata

Metadata

Assignees

Labels

bugserver-app synctechnical aspects on synchronization/communication between app and server

Type

No type

Projects

Status

🧭 Planning evaluation / ideas

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions