fix(sliding-sync): properly handle wildcard state_key #1370
No reviewers
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1370
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "titaniumtown/continuwuity:pr/sliding-sync-wildcard-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes calls as described in #1306
I was able to call between two users on the same homeserver.
Example of Video call message that appears:

The call:

Verified on ElementX and app.element.io
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
@ -692,0 +686,4 @@) -> Vec<Raw<AnySyncStateEvent>> {let mut required_state = Vec::new();for (event_type, state_key) in required_state_request {// Resolve wild-card sentinel issuethis comment can probably be removed
Just the first line of the comment? or the whole 2 lines
both lines, I think
@ -692,0 +695,4 @@.room_state_keys(room_id, event_type).await{for key in keys {I seem to recall the existence of a function that does parallel lookups of state keys?
multi_get_stateor something like thatI can't seem to find this. Could you provide some more detail?
I see this?
pub async fn multi_get_state_from_short<'a, S>(Probably different though.
I'm sorry I cannot figure this one out. I'm not familiar enough with how these data structures are setup or the meaning of these functions. A lot of them do not have doc strings so I have gotten really turned around haha.
PR looks good besides the above nits and needing a news fragment
Alrighty. I gotta read about the news fragment thingy. I will get on addressing the reviews! Thanks for taking a look so quickly!
a15c721ece68489856c4can confirm it works
68489856c48d66500c99