Prevent duplicate family name when handling contact sync message
This commit is contained in:
parent
dca1d479e8
commit
9f7979314f
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user