mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Prevent duplicate family name when handling contact sync message
This commit is contained in:
parent
dca1d479e8
commit
9f7979314f
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue