mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Don't clear contact store before receiving new sync contacts
This commit is contained in:
parent
a05a24873a
commit
08962fd1dc
1 changed files with 0 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue