Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Implement MSC4072: return result for all /keys/claims #16579

Closed
wants to merge 5 commits into from

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Oct 30, 2023

MSC4072 says we should return a result for all requested devices in a /keys/claim request. Here's an impl.

With some preparatory refactoring and cleanup.

We don't know for certain that keys will be `JsonDict`s -- indeed if the key is
not signed it will just be a string. Fix up the types to reflect this.
Rather than making the caller merge the results together, do it inside
`claim_local_one_time_keys`.
`set_tag` isn't really appropriate here, since we're logging an entire dict
rather than something useful to search on. (Also, it will get truncated.) Use
`log_kv` instead.
@DMRobertson
Copy link
Contributor

Sorry Rich, I think I've gone and introduced conflicts with #16565 and #16570. Mercifully it doesn't look too bad to resolve though!

@richvdh
Copy link
Member Author

richvdh commented Nov 16, 2023

I decided to handle this on the client side in the end (matrix-org/matrix-rust-sdk#2805)

@richvdh richvdh closed this Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants