{"action":"created","issue":{"url":"https://api.github.com/repos/stefan-niedermann/nextcloud-notes/issues/161","repository_url":"https://api.github.com/repos/stefan-niedermann/nextcloud-notes","labels_url":"https://api.github.com/repos/stefan-niedermann/nextcloud-notes/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/stefan-niedermann/nextcloud-notes/issues/161/comments","events_url":"https://api.github.com/repos/stefan-niedermann/nextcloud-notes/issues/161/events","html_url":"https://github.com/stefan-niedermann/nextcloud-notes/issues/161","id":199777499,"number":161,"title":"Prevent editing of unsynchronized notes","user":{"login":"minimeee","id":5322305,"avatar_url":"https://avatars0.githubusercontent.com/u/5322305?v=4","gravatar_id":"","url":"https://api.github.com/users/minimeee","html_url":"https://github.com/minimeee","followers_url":"https://api.github.com/users/minimeee/followers","following_url":"https://api.github.com/users/minimeee/following{/other_user}","gists_url":"https://api.github.com/users/minimeee/gists{/gist_id}","starred_url":"https://api.github.com/users/minimeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minimeee/subscriptions","organizations_url":"https://api.github.com/users/minimeee/orgs","repos_url":"https://api.github.com/users/minimeee/repos","events_url":"https://api.github.com/users/minimeee/events{/privacy}","received_events_url":"https://api.github.com/users/minimeee/received_events","type":"User","site_admin":false},"labels":[{"id":267665899,"url":"https://api.github.com/repos/stefan-niedermann/nextcloud-notes/labels/New%20Feature","name":"New Feature","color":"159818","default":false},{"id":862498151,"url":"https://api.github.com/repos/stefan-niedermann/nextcloud-notes/labels/sync","name":"sync","color":"a6fcde","default":false}],"state":"open","locked":false,"assignee":{"login":"korelstar","id":6277619,"avatar_url":"https://avatars3.githubusercontent.com/u/6277619?v=4","gravatar_id":"","url":"https://api.github.com/users/korelstar","html_url":"https://github.com/korelstar","followers_url":"https://api.github.com/users/korelstar/followers","following_url":"https://api.github.com/users/korelstar/following{/other_user}","gists_url":"https://api.github.com/users/korelstar/gists{/gist_id}","starred_url":"https://api.github.com/users/korelstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korelstar/subscriptions","organizations_url":"https://api.github.com/users/korelstar/orgs","repos_url":"https://api.github.com/users/korelstar/repos","events_url":"https://api.github.com/users/korelstar/events{/privacy}","received_events_url":"https://api.github.com/users/korelstar/received_events","type":"User","site_admin":false},"assignees":[{"login":"korelstar","id":6277619,"avatar_url":"https://avatars3.githubusercontent.com/u/6277619?v=4","gravatar_id":"","url":"https://api.github.com/users/korelstar","html_url":"https://github.com/korelstar","followers_url":"https://api.github.com/users/korelstar/followers","following_url":"https://api.github.com/users/korelstar/following{/other_user}","gists_url":"https://api.github.com/users/korelstar/gists{/gist_id}","starred_url":"https://api.github.com/users/korelstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korelstar/subscriptions","organizations_url":"https://api.github.com/users/korelstar/orgs","repos_url":"https://api.github.com/users/korelstar/repos","events_url":"https://api.github.com/users/korelstar/events{/privacy}","received_events_url":"https://api.github.com/users/korelstar/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2017-01-10T09:58:05Z","updated_at":"2018-04-13T19:52:14Z","closed_at":null,"author_association":"NONE","body":"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:\r\n\r\n1. Modify an existing note using the web interface (e.g. add or remove a line)\r\n2. Start the app and immediately start to edit the same note (before synchronization has been finished)\r\n3. Close the note on the app (using the \"back\" button)\r\n\r\nResult: 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).\r\n\r\nI 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?"},"comment":{"url":"https://api.github.com/repos/stefan-niedermann/nextcloud-notes/issues/comments/381244138","html_url":"https://github.com/stefan-niedermann/nextcloud-notes/issues/161#issuecomment-381244138","issue_url":"https://api.github.com/repos/stefan-niedermann/nextcloud-notes/issues/161","id":381244138,"user":{"login":"korelstar","id":6277619,"avatar_url":"https://avatars3.githubusercontent.com/u/6277619?v=4","gravatar_id":"","url":"https://api.github.com/users/korelstar","html_url":"https://github.com/korelstar","followers_url":"https://api.github.com/users/korelstar/followers","following_url":"https://api.github.com/users/korelstar/following{/other_user}","gists_url":"https://api.github.com/users/korelstar/gists{/gist_id}","starred_url":"https://api.github.com/users/korelstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korelstar/subscriptions","organizations_url":"https://api.github.com/users/korelstar/orgs","repos_url":"https://api.github.com/users/korelstar/repos","events_url":"https://api.github.com/users/korelstar/events{/privacy}","received_events_url":"https://api.github.com/users/korelstar/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T19:52:14Z","updated_at":"2018-04-13T19:52:14Z","author_association":"COLLABORATOR","body":"Since this requires some work on the server side, I wrote (one year ago) down some ideas on how to solve the concurrent issue in nextcloud/notes#56."}}
{"actor":{"display_login":"korelstar"}}