Get-and-set accounts, since other updates may have made them stale.
Co-authored-by: Chris Eager <79161849+eager-signal@users.noreply.github.com>
This commit is contained in:
parent
b4aabd799b
commit
b080a5db4d
|
@ -27,7 +27,7 @@ public class ContactDiscoveryWriter extends AccountDatabaseCrawlerListener {
|
||||||
throws AccountDatabaseCrawlerRestartException {
|
throws AccountDatabaseCrawlerRestartException {
|
||||||
for (Account account : chunkAccounts) {
|
for (Account account : chunkAccounts) {
|
||||||
if (account.isCanonicallyDiscoverable() != account.shouldBeVisibleInDirectory()) {
|
if (account.isCanonicallyDiscoverable() != account.shouldBeVisibleInDirectory()) {
|
||||||
accounts.update(account);
|
accounts.get(account.getUuid()).ifPresent(accounts::update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue