mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Fix performance on threaded view in large folders
This commit is contained in:
parent
4c752f9a15
commit
1cd7493bf3
1 changed files with 3 additions and 1 deletions
|
|
@ -901,10 +901,12 @@ class MailClient
|
|||
$aUids = $this->GetUids($oParams->oCacher, '',
|
||||
$oMessageCollection->FolderName, $oMessageCollection->FolderHash, $bUseSortIfSupported, $oParams->sSort);
|
||||
// Remove all threaded UID's except the most recent of each thread
|
||||
$threadedUids = [];
|
||||
foreach ($aAllThreads as $aMap) {
|
||||
unset($aMap[\array_key_last($aMap)]);
|
||||
$aUids = \array_diff($aUids, $aMap);
|
||||
$threadedUids = \array_merge($threadedUids, $aMap);
|
||||
}
|
||||
$aUids = \array_diff($aUids, $threadedUids);
|
||||
}
|
||||
} else {
|
||||
$aUids = $this->GetUids($oParams->oCacher, '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue