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-old milestone 2025-05-26 00:24:42 +00:00
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
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
to 2bab5755dc
All checks were successful
Release Docker Image / define-variables (push) Successful in 2s
Rust Checks / Format (push) Successful in 54s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m6s
Rust Checks / Clippy (push) Successful in 3m57s
Rust Checks / Cargo Test (push) Successful in 4m30s
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Successful in 10m55s
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Successful in 31m49s
Release Docker Image / merge (push) Successful in 41s
2025-06-14 22:38:14 +00:00
Compare
nex requested review from Owners 2025-06-14 22:38:25 +00:00
nex force-pushed nex/fix-join-sync-state from 2bab5755dc
All checks were successful
Release Docker Image / define-variables (push) Successful in 2s
Rust Checks / Format (push) Successful in 54s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m6s
Rust Checks / Clippy (push) Successful in 3m57s
Rust Checks / Cargo Test (push) Successful in 4m30s
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Successful in 10m55s
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Successful in 31m49s
Release Docker Image / merge (push) Successful in 41s
to 52e042cb06
All checks were successful
Checks / Prefligit / prefligit (pull_request) Successful in 30s
Documentation / Build and Deploy Documentation (pull_request) Successful in 57s
Documentation / Build and Deploy Documentation (push) Successful in 47s
Checks / Prefligit / prefligit (push) Successful in 22s
Release Docker Image / define-variables (push) Successful in 4s
Checks / Rust / Format (push) Successful in 51s
Checks / Rust / Clippy (push) Successful in 4m0s
Checks / Rust / Cargo Test (push) Successful in 4m45s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Successful in 15m8s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Successful in 16m7s
Release Docker Image / merge (push) Successful in 26s
2025-06-28 20:37:43 +00:00
Compare
nex 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
Jade modified the milestone from 0.5.0-old to v0.5.0-rc.7 2025-07-25 12:45:10 +00:00
Jade modified the milestone from v0.5.0-rc.7 to 0.5.0-old 2025-07-25 12:48:30 +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.