make message about not being able to recover SessionID more obvious

pull/1381/head
Audric Ackermann 5 years ago
parent dd4f591cf4
commit c9fc3be6c3
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -178,17 +178,18 @@ export class LeftPaneSettingSection extends React.Component<Props, State> {
isSecondaryDevice ? 'unpairDevice' : 'clearAllData'
);
let message = window.i18n(
const message = window.i18n(
isSecondaryDevice ? 'unpairDeviceWarning' : 'deleteAccountWarning'
);
const messageSub = isSecondaryDevice
let messageSub = isSecondaryDevice
? window.i18n('unpairDeviceWarningSub')
: '';
const identityKey = window.textsecure.storage.get('identityKey');
if (identityKey && identityKey.ed25519KeyPair === undefined) {
message = `${message} We've updated the way Session IDs are generated, so you will not be able to restore your current Session ID.`;
messageSub =
"We've updated the way Session IDs are generated, so you will not be able to restore your current Session ID.";
}
window.confirmationDialog({

Loading…
Cancel
Save