Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync while editing with both devices open can confuse most recent file. #70

Open
daledesilva opened this issue Jan 2, 2025 · 0 comments

Comments

@daledesilva
Copy link

daledesilva commented Jan 2, 2025

Developer of Ink here...
Documenting off the back of this issue discussion on my plugin's repo.

In my testing, I created an empty vault on both my desktop and iPad. I then create the Ink folder and a subfolder called Drawing on iPad. On the iPad, I then created a note, immediately inserted a new Ink drawing embed, drew a circle in it, and locked it. gDrive sync'd and logged in the background.

I then copied the files from the iPad, Desktop (without touching them in Obsidian), and Drive.
I found that the drawing file synced from the iPad to Drive correctly with the circle. But the Desktop file contained an empty drawing file.

I believe this is occuring:

  1. File is created on iPad.
  2. File syncs from iPad to Drive.
  3. At roughly the same time...
  • Original file syncs from Drive to Desktop.
  • The Circle is drawn on iPad and creates an updated file.
  1. Updated file syncs from iPad to Drive.
  2. Desktop doesn't download the updated file because it's file seems to be newer? (Even though it was never touched locally).

Version: 0.9.9-beta-18
Settings: I'm using all default settings in gSync.

I've attached all logs from this test for confirmation and problem solving.

Suggestion:
The desktop file seems to think it's file is newer, even though it's file creation date is based on when it was synced rather than edited? (That's my wild guess). So that logic might need to be tweaked so it's only going based off a last modified locally date.

Test - Started with Ink & Drawing Folder in Empty Vault.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant