Skip to content

Skip conflict when content is identical#1082

Open
alexanderadam wants to merge 2 commits intostandardnotes:mainfrom
alexanderadam:alexanderadam/fix-duplicate-notes-on-sync-conflict
Open

Skip conflict when content is identical#1082
alexanderadam wants to merge 2 commits intostandardnotes:mainfrom
alexanderadam:alexanderadam/fix-duplicate-notes-on-sync-conflict

Conversation

@alexanderadam
Copy link

@alexanderadam alexanderadam commented Mar 20, 2026

Hi folks,

I got bitten by issue 4021 and I was surprised that all notes were duplicated.
According to the help these conflicts would only happen "if there are any differences between the two copies" but it didn't seem to work like I would expect it.
Because timestamp updates also create a conflict even if the content is the same.

This PR extends the logic slightly so that identical content won't create a sync conflict.
Currently the conflict is created, even if just the updated at timestamp was updated 🤷‍♂️

Maybe it's something!?

Also see PR 2996. Both fixes are independent but kinda complementary

PS: I'm looking for a new adventure in case anybody is looking to hire or work with a PO/PM or Ruby/Rails/Crystal dev

bypass sync_conflict in TimeDifferenceFilter if encrypted content
and enc_item_key match between incoming and existing item, even
when timestamps differ. prevents unecessary duplicate creation.
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

Successfully merging this pull request may close these issues.

1 participant