mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Preserve UNVERIFIED status on key change
Don't revert it to default, which would effectively downgrade the security model for that contact. // FREEBIE
This commit is contained in:
@@ -431,8 +431,10 @@
|
||||
});
|
||||
} else if (!equalArrayBuffers(oldpublicKey, publicKey)) {
|
||||
console.log("Replacing existing identity...");
|
||||
var previousStatus = identityKey.get('verified');
|
||||
var verifiedStatus;
|
||||
if (identityKey.get('verified') === VerifiedStatus.VERIFIED) {
|
||||
if (previousStatus === VerifiedStatus.VERIFIED
|
||||
|| previousStatus === VerifiedStatus.UNVERIFIED) {
|
||||
verifiedStatus = VerifiedStatus.UNVERIFIED;
|
||||
} else {
|
||||
verifiedStatus = VerifiedStatus.DEFAULT;
|
||||
|
||||
Reference in New Issue
Block a user