I am making an app which lets the user keep notes. One of the features is that the notes can be synced to a remote server and can also be edited online from the website.
Here is a scenario that I do not know how to deal with:
Say that the user has created a note on their phone (and stored it on the remote server) and now the user wants to delete it. The user hits the delete button and the
pending deletion flag has been set. However, the note could not be deleted from the remote server because the user is offline.
As soon as the app is back online, it will delete all the
pending deletion files from the remote server.
There can be a lot of time before the user comes back online and in the meantime may also edit the note online from the website.
undelete be an option?
I think not because I have already asked the user if he/she is sure for deletion. However, since I am a novice developer, I would like some insight into this.