Add exportObject helper method

This commit is contained in:
AsamK 2021-11-07 11:04:41 +01:00
parent 8a216e3245
commit 82bb4f22f0
2 changed files with 16 additions and 21 deletions

View file

@ -97,7 +97,7 @@ public class StorageHelper {
(contact == null || !contact.isBlocked()) && contactRecord.isBlocked()
)) {
final var newContact = (contact == null ? Contact.newBuilder() : Contact.newBuilder(contact)).withBlocked(
contactRecord.isBlocked())
contactRecord.isBlocked())
.withName((contactRecord.getGivenName().or("") + " " + contactRecord.getFamilyName().or("")).trim())
.build();
account.getContactStore().storeContact(recipientId, newContact);