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,
|
proto: Proto.ContactDetails,
|
||||||
avatar?: ContactAvatarType
|
avatar?: ContactAvatarType
|
||||||
): ContactDetailsWithAvatar | undefined {
|
): ContactDetailsWithAvatar | undefined {
|
||||||
const aci = proto.aci
|
|
||||||
? normalizeAci(proto.aci, 'ContactBuffer.aci')
|
|
||||||
: proto.aci;
|
|
||||||
|
|
||||||
const expireTimer =
|
const expireTimer =
|
||||||
proto.expireTimer != null
|
proto.expireTimer != null
|
||||||
? DurationInSeconds.fromSeconds(proto.expireTimer)
|
? DurationInSeconds.fromSeconds(proto.expireTimer)
|
||||||
|
@ -204,6 +200,10 @@ function prepareContact(
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const aci = proto.aci
|
||||||
|
? normalizeAci(proto.aci, 'ContactBuffer.aci')
|
||||||
|
: proto.aci;
|
||||||
|
|
||||||
const result = {
|
const result = {
|
||||||
...proto,
|
...proto,
|
||||||
expireTimer,
|
expireTimer,
|
||||||
|
|
Loading…
Add table
Reference in a new issue