From 6140803b7f74454d2549e36a2cdba752b8afe649 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 29 Nov 2019 17:43:24 +0000 Subject: [PATCH] Fix key upload auth to test confirmation --- src/components/views/settings/CrossSigningPanel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/views/settings/CrossSigningPanel.js b/src/components/views/settings/CrossSigningPanel.js index 9c7f04555a..de4d7bccbf 100644 --- a/src/components/views/settings/CrossSigningPanel.js +++ b/src/components/views/settings/CrossSigningPanel.js @@ -56,7 +56,10 @@ export default class CrossSigningPanel extends React.PureComponent { makeRequest, }, ); - await finished; + const [confirmed] = await finished; + if (!confirmed) { + throw new Error("Cross-signing key upload auth canceled"); + } }, }); this.setState(this._getUpdatedStatus());