-
-
Notifications
You must be signed in to change notification settings - Fork 833
Replace event verification logic with new code in js-sdk #11528
Conversation
…nt-r/cross-user-verification
a93b8dc
to
a3863fb
Compare
ba79422
to
22c192b
Compare
break; | ||
|
||
case EventShieldReason.MISMATCHED_SENDER_KEY: | ||
shieldReasonMessage = _t("Encrypted by an unverified session"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't seem like the right error, but it preserves existing functionality (this situation replicates the code path at https://github.com/matrix-org/matrix-react-sdk/pull/11528/files#diff-9ff5535291b7c2e655ccd3d02c4f632b6f2dc9c30072514641e31c2a8751c57eL593)
…nt-r/cross-user-verification
980a5c3
to
e5fb21d
Compare
This is required because a transition from "valid event" to "unencrypted event" no longer triggers a state change, so the component does not render itself. Previously, this would be a transition from `verified: E2EState.Normal` to `verified: null`.
e5fb21d
to
154a121
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍 Some quick tests on the deployment were all fine!
// If the verification state changed, the height might have changed | ||
if (prevState.verified !== this.state.verified && this.props.onHeightChanged) { | ||
// If the shield state changed, the height might have changed. | ||
// XXX: does the shield *actually* cause a change in height? Not sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some tests with different layouts. As far as I can see the shield doesn't change the height.
Part of element-hq/element-web#25321.
Rip out the existing verification magic, and replace it with the new API introduced in matrix-org/matrix-js-sdk#3693.
Requires matrix-org/matrix-js-sdk#3693.Based on #11364
This change is marked as an internal change (Task), so will not be included in the changelog.