diff --git a/src/components/views/settings/CrossSigningPanel.js b/src/components/views/settings/CrossSigningPanel.js index aba2d03ad2..d583210c9a 100644 --- a/src/components/views/settings/CrossSigningPanel.js +++ b/src/components/views/settings/CrossSigningPanel.js @@ -158,18 +158,27 @@ export default class CrossSigningPanel extends React.PureComponent { )}

; } - let bootstrapButton; + let resetButton; if (enabledForAccount) { - bootstrapButton = ( - - {_t("Reset cross-signing and secret storage")} - + resetButton = ( +
+ + {_t("Reset cross-signing and secret storage")} + +
); - } else if (!enabledForAccount && homeserverSupportsCrossSigning) { + } + let bootstrapButton; + if ( + (!enabledForAccount || !crossSigningPublicKeysOnDevice) && + homeserverSupportsCrossSigning + ) { bootstrapButton = ( - - {_t("Bootstrap cross-signing and secret storage")} - +
+ + {_t("Bootstrap cross-signing and secret storage")} + +
); } @@ -198,9 +207,8 @@ export default class CrossSigningPanel extends React.PureComponent { {errorSection} -
- {bootstrapButton} -
+ {bootstrapButton} + {resetButton} ); }