Contact Sync: Properly drop contacts with invalid ACIs
This commit is contained in:
parent
330202960c
commit
9a283909b0
1 changed files with 4 additions and 4 deletions
|
@ -188,10 +188,6 @@ function prepareContact(
|
|||
proto: Proto.ContactDetails,
|
||||
avatar?: ContactAvatarType
|
||||
): ContactDetailsWithAvatar | undefined {
|
||||
const aci = proto.aci
|
||||
? normalizeAci(proto.aci, 'ContactBuffer.aci')
|
||||
: proto.aci;
|
||||
|
||||
const expireTimer =
|
||||
proto.expireTimer != null
|
||||
? DurationInSeconds.fromSeconds(proto.expireTimer)
|
||||
|
@ -204,6 +200,10 @@ function prepareContact(
|
|||
return undefined;
|
||||
}
|
||||
|
||||
const aci = proto.aci
|
||||
? normalizeAci(proto.aci, 'ContactBuffer.aci')
|
||||
: proto.aci;
|
||||
|
||||
const result = {
|
||||
...proto,
|
||||
expireTimer,
|
||||
|
|
Loading…
Add table
Reference in a new issue