Always calculate state diff IDs in syncv3 #840

Merged
nex merged 1 commit from nex/fix-join-sync-state into main 2025-06-28 23:11:19 +00:00
Owner

this seemingly at least partially fixes #779 by always calculating the state diff between the sync tokens, rather than checking only if they have changed.
It appears that joins still don't come down sync immediately, but they at least now include all of the relevant state for clients. Fixes the "unnamed room" bug on many clients, and consequently fixes the bug where unsuspecting clients don't know a room is encrypted.

Would like if this could be battle tested to ensure that it does not induce additional load

this seemingly at least partially fixes #779 by always calculating the state diff between the sync tokens, rather than checking only if they have changed. It appears that joins still don't come down sync immediately, but they at least now include all of the relevant state for clients. Fixes the "unnamed room" bug on many clients, and consequently fixes the bug where unsuspecting clients don't know a room is encrypted. Would like if this could be battle tested to ensure that it does not induce additional load
nex added this to the 0.5.0 milestone 2025-05-26 00:24:42 +00:00
nex added the
Bug
Matrix/Client
labels 2025-05-26 00:24:42 +00:00
nex added 1 commit 2025-05-26 00:24:43 +00:00
Always calculate state diff IDs in syncv3
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Successful in 40s
Release Docker Image / define-variables (push) Successful in 2s
Rust Checks / Format (push) Successful in 21s
Rust Checks / Clippy (push) Successful in 5m31s
Rust Checks / Cargo Test (push) Successful in 6m14s
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Failing after 46s
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Successful in 20m43s
Release Docker Image / merge (push) Has been skipped
fe853c9ac8
seemingly fixes #779
Author
Owner

Haven't had time to properly see if this actually improved anything or if it was the placebo effect, but I didn't notice any new issues arise, so I'm gonna mark this as ready to merge.

It doesn't fix the issue, but it helps it, so.

Haven't had time to properly see if this actually improved anything or if it was the placebo effect, but I didn't notice any new issues arise, so I'm gonna mark this as ready to merge. It doesn't fix the issue, but it helps it, so.
nex force-pushed nex/fix-join-sync-state from fe853c9ac8 to 2bab5755dc 2025-06-14 22:38:14 +00:00 Compare
requested review from Owners 2025-06-14 22:38:25 +00:00
nex force-pushed nex/fix-join-sync-state from 2bab5755dc to 52e042cb06 2025-06-28 20:37:43 +00:00 Compare
removed review request for Owners 2025-06-28 23:11:14 +00:00
nex merged commit 52e042cb06 into main 2025-06-28 23:11:19 +00:00
nex deleted branch nex/fix-join-sync-state 2025-06-28 23:11:19 +00:00
Aranjedeath approved these changes 2025-06-29 01:23:43 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#840
No description provided.