Parse unregisteredAtTimestamp correctly

Fixes #1651
Fixes #1646
This commit is contained in:
AsamK 2025-01-14 20:18:42 +01:00
parent d982633215
commit bd95373a70

View file

@ -270,7 +270,9 @@ public class ContactRecordProcessor extends DefaultStorageRecordProcessor<Signal
.withNickNameGivenName(nullIfEmpty(contactProto.givenName))
.withNickNameFamilyName(nullIfEmpty(contactProto.familyName))
.withNote(nullIfEmpty(contactProto.note))
.withUnregisteredTimestamp(contactProto.unregisteredAtTimestamp);
.withUnregisteredTimestamp(contactProto.unregisteredAtTimestamp == 0
? null
: contactProto.unregisteredAtTimestamp);
account.getRecipientStore().storeContact(connection, recipientId, newContact.build());
}