From 9f7979314f2e3d5338b704f43e81da5a408d97b9 Mon Sep 17 00:00:00 2001 From: AsamK Date: Mon, 27 Jun 2022 16:57:40 +0200 Subject: [PATCH] Prevent duplicate family name when handling contact sync message --- .../main/java/org/asamk/signal/manager/helper/SyncHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/main/java/org/asamk/signal/manager/helper/SyncHelper.java b/lib/src/main/java/org/asamk/signal/manager/helper/SyncHelper.java index 9a5b5a7d..d192ae8f 100644 --- a/lib/src/main/java/org/asamk/signal/manager/helper/SyncHelper.java +++ b/lib/src/main/java/org/asamk/signal/manager/helper/SyncHelper.java @@ -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());