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:
gram-signal 2021-09-07 11:04:17 -06:00
parent b4aabd799b
commit b080a5db4d
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public class ContactDiscoveryWriter extends AccountDatabaseCrawlerListener {
throws AccountDatabaseCrawlerRestartException {
for (Account account : chunkAccounts) {
if (account.isCanonicallyDiscoverable() != account.shouldBeVisibleInDirectory()) {
accounts.update(account);
accounts.get(account.getUuid()).ifPresent(accounts::update);
}
}
}