+ final var profile = account.getProfileStore().getProfile(recipientId);
+ final var givenName = profile == null ? null : profile.getGivenName();
+ final var familyName = profile == null ? null : profile.getFamilyName();
+ if ((contactRecord.getGivenName().isPresent() && !contactRecord.getGivenName().get().equals(givenName)) || (
+ contactRecord.getFamilyName().isPresent() && !contactRecord.getFamilyName().get().equals(familyName)
+ )) {
+ final var profileBuilder = profile == null ? Profile.newBuilder() : Profile.newBuilder(profile);
+ final var newProfile = profileBuilder.withGivenName(contactRecord.getGivenName().orElse(null))
+ .withFamilyName(contactRecord.getFamilyName().orElse(null))
+ .build();
+ account.getProfileStore().storeProfile(recipientId, newProfile);
+ }