Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Simplify references to VerificationRequest #11045

Merged
merged 8 commits into from
Jun 7, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 5, 2023

matrix-org/matrix-js-sdk#3441 adds some new methods to VerificationRequest so that we can avoid direct references to channel and qrCodeData. This PR makes use of the new methods, as well as removing references to some other fiddly methods like {requesting,receiving}UserId.

Requires matrix-org/matrix-js-sdk#3441.


This change is marked as an internal change (Task), so will not be included in the changelog.

@richvdh richvdh force-pushed the rav/element-r/16_new_verificationrequest_methods branch from 8dcf36f to 14f5515 Compare June 6, 2023 09:17
Normally these are guarded by `request.initiatedByMe` so we can trivially
replace it with `request.otherUserId` or `client.getUserId()`. In one place we
actually need to apply some logic.
@richvdh richvdh force-pushed the rav/element-r/16_new_verificationrequest_methods branch from 14f5515 to 2c4a402 Compare June 6, 2023 09:20
@richvdh richvdh marked this pull request as ready for review June 6, 2023 09:50
@richvdh richvdh requested a review from a team as a code owner June 6, 2023 09:50
Merged via the queue into develop with commit 34439ee Jun 7, 2023
@richvdh richvdh deleted the rav/element-r/16_new_verificationrequest_methods branch June 7, 2023 15:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants