Set verified
attribute on import
This commit is contained in:
parent
1f693be9fc
commit
d4b0ae25c1
1 changed files with 3 additions and 1 deletions
|
@ -856,14 +856,16 @@ export class BackupImportStream extends Writable {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (serviceId != null && Bytes.isNotEmpty(contact.identityKey)) {
|
if (serviceId != null && Bytes.isNotEmpty(contact.identityKey)) {
|
||||||
|
const verified = contact.identityState || 0;
|
||||||
this.identityKeys.set(serviceId, {
|
this.identityKeys.set(serviceId, {
|
||||||
id: serviceId,
|
id: serviceId,
|
||||||
publicKey: contact.identityKey,
|
publicKey: contact.identityKey,
|
||||||
verified: contact.identityState || 0,
|
verified,
|
||||||
firstUse: true,
|
firstUse: true,
|
||||||
timestamp: this.now,
|
timestamp: this.now,
|
||||||
nonblockingApproval: true,
|
nonblockingApproval: true,
|
||||||
});
|
});
|
||||||
|
attrs.verified = verified;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (contact.notRegistered) {
|
if (contact.notRegistered) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue