digidem / mapeo-core-next

The upcoming version of Mapeo Core
MIT License
7 stars 1 forks source link

fix: update pre-haves as they change #594

Closed EvanHahn closed 2 months ago

EvanHahn commented 2 months ago

In the following scenario:

  1. Alice and Bob connect but do not start sync.
  2. Alice adds an observation.

Bob should see that there is something new to sync.

Previously, this wouldn't happen. Now, when a writer core is appended to or cleared, we send new pre-have messages.

Closes #582.

EvanHahn commented 2 months ago

Merging without review. I'll ask @gmaclennan to review soon.