Prevent duplicate family name when handling contact sync message

This commit is contained in:
AsamK 2022-06-27 16:57:40 +02:00
parent dca1d479e8
commit 9f7979314f

View file

@ -308,6 +308,7 @@ public class SyncHelper {
final var builder = contact == null ? Contact.newBuilder() : Contact.newBuilder(contact); final var builder = contact == null ? Contact.newBuilder() : Contact.newBuilder(contact);
if (c.getName().isPresent()) { if (c.getName().isPresent()) {
builder.withGivenName(c.getName().get()); builder.withGivenName(c.getName().get());
builder.withFamilyName(null);
} }
if (c.getColor().isPresent()) { if (c.getColor().isPresent()) {
builder.withColor(c.getColor().get()); builder.withColor(c.getColor().get());