matrix-js-sdk
3176257d - Defer key bundle downloads on server-initiated joins (MSC4509)

Commit
121 days ago
Defer key bundle downloads on server-initiated joins (MSC4509) A server-initiated join (e.g. an auto-accepted knock) lands on all of our user's devices in the same sync instant, so each would eagerly download the MSC4268 room key bundle. Instead, only download it when the server designates this device as the claimer (a new org.matrix.msc4509.key_bundle_claim to-device message, only trusted from our own user), or lazily upon the first undecryptable event in the room. Client-initiated joins via joinRoom keep the eager behaviour. The MSC4509 behaviour is unstable, so it is opt-in via the new unstableMSC4509KeyBundleClaim client option: when unset (the default), key_bundle_claim messages are ignored and server-initiated joins keep the eager per-device download.
Author
Committer
Parents
Loading