Prevent duplicate family name when handling contact sync message

This commit is contained in:
AsamK committed 2022-06-27 16:57:46 +02:00
1 parent dca1d479e8
commit 9f7979314f
1 file changed
+1
@@ -308,6 +308,7 @@ public class SyncHelper {
final var builder = contact == null ? Contact.newBuilder() : Contact.newBuilder(contact);
if (c.getName().isPresent()) {
builder.withGivenName(c.getName().get());
builder.withFamilyName(null);
}
if (c.getColor().isPresent()) {
builder.withColor(c.getColor().get());