mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 10:58:19 +01:00
Fix contact sync for aci-less contacts
This commit is contained in:
@@ -13,6 +13,7 @@ import type { AciString } from '../types/ServiceId';
|
||||
import { computeHash } from '../Crypto';
|
||||
import { dropNull } from '../util/dropNull';
|
||||
import { fromAciUuidBytesOrString } from '../util/ServiceId';
|
||||
import * as Bytes from '../Bytes';
|
||||
import { decryptAttachmentV2ToSink } from '../AttachmentCrypto';
|
||||
|
||||
import Avatar = Proto.ContactDetails.IAvatar;
|
||||
@@ -204,7 +205,7 @@ function prepareContact(
|
||||
|
||||
const aci = fromAciUuidBytesOrString(aciBinary, rawAci, 'ContactBuffer.aci');
|
||||
|
||||
if (aci == null) {
|
||||
if ((Bytes.isNotEmpty(aciBinary) || rawAci) && aci == null) {
|
||||
log.warn('ParseContactsTransform: Dropping contact with invalid aci');
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user