[tomboy-list] Note deletion and sync
hald at icandy.de
Sun May 23 07:01:49 PDT 2010
Hi Sandy and all,
I finally found some time to work on Conboy's sync feature again. It
seems to work nicely (whenever U1 is working nicely ;)), however I'm
still a bit unsure how I should handle note deletions. So here are my
1) How do I find out if there have been notes deleted on the server? I
assume I ask the server for all notes (since rev=0) without note content
and then compare them to the list of local notes. Is that right or is
there a more efficient way?
2) Whenever the newest note (note with latest-revision == last-sync-rev)
is deleted from the server, the last-sync-rev is decreased to the next
highest revision. Do I have to react in a special way in this situation?
Currently I'm just overwriting my local last-sync-rev with the server
provided value. Is this correct?
More information about the Tomboy-list