mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-19 01:51:27 +01:00
Handle invalidatedEncrytption message
This commit is contained in:
parent
b0c9054f23
commit
c1b099f5da
@ -1389,5 +1389,11 @@
|
|||||||
},
|
},
|
||||||
"errorEnableBiometricDesc": {
|
"errorEnableBiometricDesc": {
|
||||||
"message": "Action was canceld by the desktop applicaiton."
|
"message": "Action was canceld by the desktop applicaiton."
|
||||||
}
|
},
|
||||||
|
"nativeMessagingInvalidEncryptionDesc": {
|
||||||
|
"message": "Desktop application invalidated the secure communication channel. Please retry this operation"
|
||||||
|
},
|
||||||
|
"nativeMessagingInvalidEncryptionTitle": {
|
||||||
|
"message": "Desktop communication interupted"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,17 @@ export class NativeMessagingBackground {
|
|||||||
this.sharedSecret = new SymmetricCryptoKey(decrypted);
|
this.sharedSecret = new SymmetricCryptoKey(decrypted);
|
||||||
this.secureSetupResolve();
|
this.secureSetupResolve();
|
||||||
break;
|
break;
|
||||||
|
case 'invalidateEncryption':
|
||||||
|
this.sharedSecret = null;
|
||||||
|
this.privateKey = null;
|
||||||
|
this.connected = false;
|
||||||
|
|
||||||
|
this.messagingService.send('showDialog', {
|
||||||
|
text: this.i18nService.t('nativeMessagingInvalidEncryptionDesc'),
|
||||||
|
title: this.i18nService.t('nativeMessagingInvalidEncryptionTitle'),
|
||||||
|
confirmText: this.i18nService.t('ok'),
|
||||||
|
type: 'error',
|
||||||
|
});
|
||||||
default:
|
default:
|
||||||
this.onMessage(message);
|
this.onMessage(message);
|
||||||
}
|
}
|
||||||
@ -83,6 +94,8 @@ export class NativeMessagingBackground {
|
|||||||
type: 'error',
|
type: 'error',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
this.sharedSecret = null;
|
||||||
|
this.privateKey = null;
|
||||||
this.connected = false;
|
this.connected = false;
|
||||||
reject();
|
reject();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user