Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull out a new VerificationRequest interface #3449

Merged
merged 5 commits into from
Jun 13, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 6, 2023

Notes: Introduce a new Crypto.VerificationRequest interface, and deprecate direct access to the old VerificationRequest class. Also deprecate some related classes that were exported from src/crypto/verification/request/VerificationRequest: VerificationRequestEvent, Phase.


Here's what your changelog entry will look like:

🦖 Deprecations

  • Introduce a new Crypto.VerificationRequest interface, and deprecate direct access to the old VerificationRequest class. Also deprecate some related classes that were exported from src/crypto/verification/request/VerificationRequest (#3449).

@richvdh richvdh added the T-Deprecation A pull request that makes something deprecated label Jun 6, 2023
@richvdh richvdh force-pushed the rav/element-r/17_verification_request_interface branch from 0322716 to 75edc50 Compare June 6, 2023 12:14
@richvdh richvdh force-pushed the rav/element-r/17_verification_request_interface branch 3 times, most recently from 850b03a to 9b8eba4 Compare June 9, 2023 14:38
@richvdh richvdh force-pushed the rav/element-r/17_verification_request_interface branch from 9b8eba4 to 11d9de3 Compare June 12, 2023 21:57
@richvdh richvdh marked this pull request as ready for review June 13, 2023 10:34
@richvdh richvdh requested a review from a team as a code owner June 13, 2023 10:34
Copy link
Contributor

@weeman1337 weeman1337 left a 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 👍 Checked out locally and tested a verification. Works.

@richvdh richvdh added this pull request to the merge queue Jun 13, 2023
Merged via the queue into develop with commit 826ea5b Jun 13, 2023
@richvdh richvdh deleted the rav/element-r/17_verification_request_interface branch June 13, 2023 12:07
richvdh added a commit that referenced this pull request Jun 14, 2023
#3449 deprecated a bunch of
exports from `src/crypto/verification/request/VerificationRequest`. Let's stop
using them in the integration test.
richvdh added a commit that referenced this pull request Jun 14, 2023
#3449 deprecated a bunch of
exports from `src/crypto/verification/request/VerificationRequest`. Let's stop
using them in the integration test.
richvdh added a commit that referenced this pull request Jun 15, 2023
#3449 deprecated a bunch of
exports from `src/crypto/verification/request/VerificationRequest`. Let's stop
using them in the integration test.
richvdh added a commit that referenced this pull request Jun 26, 2023
Previous PRs (#3449, etc) have
pulled out an interface from the `VerificationRequest` class, but applications
registering for the `CryptoEvent.VerificationRequest` event could still be
expecting a fully-fledged class rather than the interface.

To handle this without breaking backwards compat, add a new event type that
carries the interface, not the class.
richvdh added a commit that referenced this pull request Jun 26, 2023
Previous PRs (#3449, etc) have
pulled out an interface from the `VerificationRequest` class, but applications
registering for the `CryptoEvent.VerificationRequest` event could still be
expecting a fully-fledged class rather than the interface.

To handle this without breaking backwards compat, add a new event type that
carries the interface, not the class.
richvdh added a commit that referenced this pull request Jun 26, 2023
Previous PRs (#3449, etc) have
pulled out an interface from the `VerificationRequest` class, but applications
registering for the `CryptoEvent.VerificationRequest` event could still be
expecting a fully-fledged class rather than the interface.

To handle this without breaking backwards compat, add a new event type that
carries the interface, not the class.
github-merge-queue bot pushed a commit that referenced this pull request Jun 27, 2023
* More slow test fixes

* Create a new event type for verification requests

Previous PRs (#3449, etc) have
pulled out an interface from the `VerificationRequest` class, but applications
registering for the `CryptoEvent.VerificationRequest` event could still be
expecting a fully-fledged class rather than the interface.

To handle this without breaking backwards compat, add a new event type that
carries the interface, not the class.
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Feb 22, 2024
* The Browserify artifact is being deprecated, scheduled for removal in the October 10th release cycle. ([\matrix-org#3189](matrix-org#3189)).
* ElementR: Add `CryptoApi#bootstrapSecretStorage` ([\matrix-org#3483](matrix-org#3483)). Contributed by @florianduros.
* Deprecate `MatrixClient.findVerificationRequestDMInProgress`, `MatrixClient.getVerificationRequestsToDeviceInProgress`, and `MatrixClient.requestVerification`, in favour of methods in `CryptoApi`. ([\matrix-org#3474](matrix-org#3474)).
* Introduce a new `Crypto.VerificationRequest` interface, and deprecate direct access to the old `VerificationRequest` class. Also deprecate some related classes that were exported from `src/crypto/verification/request/VerificationRequest` ([\matrix-org#3449](matrix-org#3449)).
* OIDC: navigate to authorization endpoint ([\matrix-org#3499](matrix-org#3499)). Contributed by @kerryarchibald.
* Support for interactive device verification in Element-R. ([\matrix-org#3505](matrix-org#3505)).
* Support for interactive device verification in Element-R. ([\matrix-org#3508](matrix-org#3508)).
* Support for interactive device verification in Element-R. ([\matrix-org#3490](matrix-org#3490)). Fixes element-hq/element-web#25316.
* Element-R: Store cross signing keys in secret storage ([\matrix-org#3498](matrix-org#3498)). Contributed by @florianduros.
* OIDC: add dynamic client registration util function ([\matrix-org#3481](matrix-org#3481)). Contributed by @kerryarchibald.
* Add getLastUnthreadedReceiptFor utility to Thread delegating to the underlying Room ([\matrix-org#3493](matrix-org#3493)).
* ElementR: Add `rust-crypto#createRecoveryKeyFromPassphrase` implementation ([\matrix-org#3472](matrix-org#3472)). Contributed by @florianduros.
* Aggregate relations regardless of whether event fits into the timeline ([\matrix-org#3496](matrix-org#3496)). Fixes element-hq/element-web#25596.
* Fix bug where switching media caused media in subsequent calls to fail ([\matrix-org#3489](matrix-org#3489)).
* Fix: remove polls from room state on redaction ([\matrix-org#3475](matrix-org#3475)). Fixes element-hq/element-web#25573. Contributed by @kerryarchibald.
* Fix export type `GeneratedSecretStorageKey` ([\matrix-org#3479](matrix-org#3479)). Contributed by @florianduros.
* Close IDB database before deleting it to prevent spurious unexpected close errors ([\matrix-org#3478](matrix-org#3478)). Fixes element-hq/element-web#25597.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Deprecation A pull request that makes something deprecated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants