From ea4d97fa73b17a1ebe6dfda4acfbf760da089341 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 31 Jan 2020 15:04:44 +0000 Subject: [PATCH] Hack in a layout option --- .../structures/auth/CompleteSecurity.js | 1 + .../views/dialogs/DeviceVerifyOwnDialog.js | 1 + .../views/right_panel/EncryptionPanel.js | 4 ++- .../views/right_panel/VerificationPanel.js | 29 +++++++++++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) diff --git a/src/components/structures/auth/CompleteSecurity.js b/src/components/structures/auth/CompleteSecurity.js index 18000be68e..1443db0613 100644 --- a/src/components/structures/auth/CompleteSecurity.js +++ b/src/components/structures/auth/CompleteSecurity.js @@ -140,6 +140,7 @@ export default class CompleteSecurity extends React.Component { if (this.state.verificationRequest) { const EncryptionPanel = sdk.getComponent("views.right_panel.EncryptionPanel"); body = { +const EncryptionPanel = ({verificationRequest, member, onClose, layout}) => { const [request, setRequest] = useState(verificationRequest); useEffect(() => { setRequest(verificationRequest); @@ -77,6 +77,7 @@ const EncryptionPanel = ({verificationRequest, member, onClose}) => { } else { return ( ; + if (this.state.qrCodeProps) { + qrCode = ; + } + return ( +
+ {_t("Verify this session by completing one of the following:")} +
+
+

{_t("Scan this unique code")}

+ {qrCode} +
+
{_t("or")}
+
+

{_t("Compare unique emoji")}

+ {_t("Compare a unique set of emoji if you don't have a camera on either device")} + + {_t("Start")} + +
+
+
+ ); + } + let button; if (pending) { button = ;