mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 10:58:19 +01:00
Make verified notifications consistent
This commit is contained in:
@@ -1512,11 +1512,12 @@ export async function mergeContactRecord(
|
||||
}
|
||||
const newVerified = fromRecordVerified(identityState);
|
||||
|
||||
const needsNotification = await signalProtocolStore.updateIdentityAfterSync(
|
||||
serviceId,
|
||||
newVerified,
|
||||
contactRecord.identityKey
|
||||
);
|
||||
const { shouldAddVerifiedChangedMessage } =
|
||||
await signalProtocolStore.updateIdentityAfterSync(
|
||||
serviceId,
|
||||
newVerified,
|
||||
contactRecord.identityKey
|
||||
);
|
||||
|
||||
if (verified !== newVerified) {
|
||||
details.push(
|
||||
@@ -1528,7 +1529,7 @@ export async function mergeContactRecord(
|
||||
}
|
||||
|
||||
const VERIFIED_ENUM = signalProtocolStore.VerifiedStatus;
|
||||
if (needsNotification) {
|
||||
if (shouldAddVerifiedChangedMessage) {
|
||||
details.push('adding a verified notification');
|
||||
await conversation.addVerifiedChange(
|
||||
conversation.id,
|
||||
|
||||
Reference in New Issue
Block a user