From 08962fd1dc39d5237e39e5d787b6ba07d4ad2de1 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sat, 1 May 2021 15:03:18 +0200 Subject: [PATCH] Don't clear contact store before receiving new sync contacts --- lib/src/main/java/org/asamk/signal/manager/Manager.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/src/main/java/org/asamk/signal/manager/Manager.java b/lib/src/main/java/org/asamk/signal/manager/Manager.java index 2f34f7a1..cd91230d 100644 --- a/lib/src/main/java/org/asamk/signal/manager/Manager.java +++ b/lib/src/main/java/org/asamk/signal/manager/Manager.java @@ -1995,9 +1995,6 @@ public class Manager implements Closeable { try (var attachmentAsStream = retrieveAttachmentAsStream(contactsMessage.getContactsStream() .asPointer(), tmpFile)) { var s = new DeviceContactsInputStream(attachmentAsStream); - if (contactsMessage.isComplete()) { - account.getContactStore().clear(); - } DeviceContact c; while ((c = s.read()) != null) { if (c.getAddress().matches(account.getSelfAddress()) && c.getProfileKey().isPresent()) {