mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Don't use private keys for QR code
This commit is contained in:
parent
1ec746c014
commit
586a240e41
@ -45,17 +45,15 @@ export default class VerificationPanel extends React.PureComponent {
|
||||
if (request.requested) {
|
||||
return (<p>Waiting for {request.otherUserId} to accept ... <Spinner /></p>);
|
||||
} else if (request.ready) {
|
||||
const keyId = `ed25519:${MatrixClientPeg.get().getCrossSigningId()}`;
|
||||
const qrCodeKeys = [
|
||||
[MatrixClientPeg.get().getDeviceId(), MatrixClientPeg.get().getDeviceEd25519Key()],
|
||||
[MatrixClientPeg.get().getCrossSigningId(), MatrixClientPeg.get().getCrossSigningKey("master")],
|
||||
[keyId, MatrixClientPeg.get().getCrossSigningId()],
|
||||
];
|
||||
// TODO: Await a bunch of this
|
||||
const otherCrossSigning = MatrixClientPeg.get().getStoredCrossSigningForUser(request.otherUserId);
|
||||
const otherUserKey = otherCrossSigning ? otherCrossSigning.getCrossSigningKey("master") : null;
|
||||
const qrCode = <VerificationQRCode
|
||||
keyholderUserId={MatrixClientPeg.get().getUserId()}
|
||||
requestEventId={request.event.eventId}
|
||||
otherUserKey={otherUserKey}
|
||||
otherUserKey={"todo"}
|
||||
secret={request.encodedSharedSecret}
|
||||
keys={qrCodeKeys}
|
||||
/>;
|
||||
|
Loading…
Reference in New Issue
Block a user