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)) {
|
||||
const verified = contact.identityState || 0;
|
||||
this.identityKeys.set(serviceId, {
|
||||
id: serviceId,
|
||||
publicKey: contact.identityKey,
|
||||
verified: contact.identityState || 0,
|
||||
verified,
|
||||
firstUse: true,
|
||||
timestamp: this.now,
|
||||
nonblockingApproval: true,
|
||||
});
|
||||
attrs.verified = verified;
|
||||
}
|
||||
|
||||
if (contact.notRegistered) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue