element-hq / element-hq/element-web

Clean up cross-signing events

Open
#13,472 0 comments 0 reactions 0 assignees View on GitHub
A-E2EE-Cross-Signing
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

The events that fire on cross-signing stuff changing are somewhat confusing and unclear. We should work them into a more consistent story.

Including, but not limited to:
* `userTrustStatusChanged` and `crossSigning.keysChanged` seem to occur in most of the same places, but not all the same ones, and have emitters duplicated in many places
* `_storeTrustedSelfKeys` emits that your own user trust has changed but should it emit events for any cross-signed user?
* Maybe there should be a specific event for when the value of `isCrossSigningReady()` changes, rather than the app having to listen for changes in the various things it checks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.