Skip to content

Commit

Permalink
Parse unregisteredAtTimestamp correctly
Browse files Browse the repository at this point in the history
Fixes #1651
Fixes #1646
  • Loading branch information
AsamK committed Jan 14, 2025
1 parent d982633 commit bd95373
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ protected void updateLocal(StorageRecordUpdate<SignalContactRecord> update) thro
.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());
}

Expand Down

0 comments on commit bd95373

Please sign in to comment.