Replace event verification logic with new code in js-sdk (#11528)
* Use new crypto-api for cross user verification * update verification flow with new APIs * Replace some calls to `checkUserTrust` A start on https://github.com/vector-im/crypto-internal/issues/147 * Enable cypress tests * update tests * Delegate decisions on event shields to the js-sdk * rerender after editing events 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`. * Update tests * prettier * Test coverage --------- Co-authored-by: Florian Duros <florianduros@element.io>
This commit is contained in:
parent
579b0dd10a
commit
cf2340bcad
5 changed files with 216 additions and 167 deletions
|
@ -409,7 +409,7 @@ describe("Cryptography", function () {
|
|||
.should("contain", "test encrypted from unverified")
|
||||
.find(".mx_EventTile_e2eIcon", { timeout: 100000 })
|
||||
.should("have.class", "mx_EventTile_e2eIcon_warning")
|
||||
.should("have.attr", "aria-label", "Encrypted by an unverified session");
|
||||
.should("have.attr", "aria-label", "Encrypted by an unverified user.");
|
||||
|
||||
/* Should show a grey padlock for a message from an unknown device */
|
||||
|
||||
|
@ -422,7 +422,7 @@ describe("Cryptography", function () {
|
|||
.should("contain", "test encrypted from unverified")
|
||||
.find(".mx_EventTile_e2eIcon")
|
||||
.should("have.class", "mx_EventTile_e2eIcon_normal")
|
||||
.should("have.attr", "aria-label", "Encrypted by a deleted session");
|
||||
.should("have.attr", "aria-label", "Encrypted by an unknown or deleted device.");
|
||||
});
|
||||
|
||||
it("Should show a grey padlock for a key restored from backup", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue