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

Remove manual device verification which is not supported by the new cryptography stack #28588

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

florianduros
Copy link
Member

@florianduros florianduros commented Nov 28, 2024

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • I have licensed the changes to Element by completing the Contributor License Agreement (CLA)

Task #26922
Closes #27201

  • Replace usage of deprecated crypto events
  • Remove call of MatrixClient.setDeviceVerified

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise

src/verification.ts Show resolved Hide resolved
@florianduros florianduros added T-Defect and removed T-Task Tasks for the team like planning labels Nov 29, 2024
@florianduros florianduros changed the title Remove deprecated usages of js-sdk Remove manual device verification which is not supported by the new cryptography stack Nov 29, 2024
@richvdh
Copy link
Member

richvdh commented Dec 2, 2024

I think this fixes #27201 ?

@@ -56,9 +56,6 @@ const UntrustedDeviceDialog: React.FC<IProps> = ({ device, user, onFinished }) =
<p>{askToVerifyText}</p>
</div>
<div className="mx_Dialog_buttons">
<AccessibleButton kind="primary_outline" onClick={() => onFinished("legacy")}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type definition for IProps above needs an update: legacy is never returned now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(While we're at it: why not fix the type so that it something less random than "sas" | false. And document it.)

Comment on lines +50 to +53
const verificationRequestPromise = matrixClient
.getCrypto()
?.requestDeviceVerification(user.userId, device.deviceId);
setRightPanel({ member: user, verificationRequestPromise });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing the condition on action looks incorrect here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manual Device Verification (eyeballing the key) doesn't work in ER
3 participants