Changes get lost on leaving post
Sometimes a change in an post is not shown in the preview of the post. Leaving the post can result in loosing the change.
Possible reason: when opening the post the phone had an internet connection. During editing the connection is lost.
The app does not use the network at all when opening/editing posts. The server is only contacted when:
- a sync is being performed (on the home screen) - this could be triggered by a change in the status or content of a post, or the addition/deletion of a draft
- before saving a post, the latest copy of the post is downloaded to check if there are potential conflicts that need resolving (in case the post has been modified by someone else too)
- uploading an image
A reproducible scenario or a different explanation would help. Alternatively, I could try to replicate this via some automated tests: repeatedly editing a post and checking to see if the preview is updated correspondingly. Since this bug is probably not caused by the Markdown renderer, it shouldn't matter what the content of the post is, so generating random strings may be enough.