Skip to content

Commit

Permalink
fix(sync): mailboxes not being synced due to short circuiting
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Jun 26, 2023
1 parent fd63ac8 commit ae8d245
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions lib/Service/Sync/ImapToDbSynchronizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,17 @@ public function syncAccount(Account $account,
continue;
}
$logger->debug("Syncing " . $mailbox->getId());
$rebuildThreads = $rebuildThreads || $this->sync(
$account,
$mailbox,
$logger,
$criteria,
null,
$force,
true
);
if ($this->sync(
$account,
$mailbox,
$logger,
$criteria,
null,
$force,
true
)) {
$rebuildThreads = true;
}
}
$this->dispatcher->dispatchTyped(
new SynchronizationEvent(
Expand Down

0 comments on commit ae8d245

Please sign in to comment.