mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +02:00
cram the EncryptionPanel in CompleteSecurity instead of IncomingSasDialog
so we get QR code support and support phases prior to STARTED
This commit is contained in:
parent
bc5a59339b
commit
3d91ff23ec
@ -138,9 +138,11 @@ export default class CompleteSecurity extends React.Component {
|
|||||||
let body;
|
let body;
|
||||||
|
|
||||||
if (this.state.verificationRequest) {
|
if (this.state.verificationRequest) {
|
||||||
const IncomingSasDialog = sdk.getComponent("views.dialogs.IncomingSasDialog");
|
const EncryptionPanel = sdk.getComponent("views.right_panel.EncryptionPanel");
|
||||||
body = <IncomingSasDialog verifier={this.state.verificationRequest.verifier}
|
body = <EncryptionPanel
|
||||||
onFinished={this.props.onFinished}
|
verificationRequest={this.state.verificationRequest}
|
||||||
|
onClose={this.props.onFinished}
|
||||||
|
member={MatrixClientPeg.get().getUser(this.state.verificationRequest.otherUserId)}
|
||||||
/>;
|
/>;
|
||||||
} else if (phase === PHASE_INTRO) {
|
} else if (phase === PHASE_INTRO) {
|
||||||
icon = <span className="mx_CompleteSecurity_headerIcon mx_E2EIcon_warning"></span>;
|
icon = <span className="mx_CompleteSecurity_headerIcon mx_E2EIcon_warning"></span>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user