mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-25 18:14:27 +01:00
Don't clear contact store before receiving new sync contacts
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user