xmtp / libxmtp

LibXMTP is a shared library encapsulating the core functionality of the XMTP messaging protocol, such as cryptography, networking, and language bindings.
MIT License
47 stars 20 forks source link

Harden Consent Update Sync Ordering #1308

Open codabrink opened 5 days ago

codabrink commented 5 days ago

Is your feature request related to a problem?

Consent updates are processed through the local event stream, which is not guaranteed FIFO. When a consent is flipped back and forth quickly enough, there is a chance those updates process out of order, ending up in the wrong state on other devices.

Describe the solution to the problem

Switch from local events to the sync group messages for update ordering.