mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Another fix for #175
This commit is contained in:
parent
0d31261063
commit
11547b575e
1 changed files with 5 additions and 14 deletions
|
|
@ -1066,25 +1066,16 @@ class MailClient
|
||||||
|
|
||||||
if (\count($aSearchedUids))
|
if (\count($aSearchedUids))
|
||||||
{
|
{
|
||||||
$aFlippedSearchedUids = \array_flip($aSearchedUids);
|
|
||||||
|
|
||||||
$bSearch = true;
|
|
||||||
$aNewUids = array();
|
$aNewUids = array();
|
||||||
|
|
||||||
foreach ($aUids as $iUid)
|
foreach ($aUids as $iUid)
|
||||||
{
|
{
|
||||||
if (isset($aFlippedSearchedUids[$iUid]))
|
if (\in_array($iUid, $aSearchedUids)) {
|
||||||
{
|
|
||||||
$aNewUids[] = $iUid;
|
$aNewUids[] = $iUid;
|
||||||
}
|
} else if ($bUseThreads && !$oParams->iThreadUid) {
|
||||||
else if ($bUseThreads && !$oParams->iThreadUid && isset($aAllThreads[$iUid]) && \is_array($aAllThreads[$iUid]))
|
foreach ($aAllThreads as $aMap) {
|
||||||
{
|
if (\in_array($iUid, $aMap) && \array_intersect($aSearchedUids, $aMap)) {
|
||||||
foreach ($aAllThreads[$iUid] as $iSubUid)
|
|
||||||
{
|
|
||||||
if (isset($aFlippedSearchedUids[$iSubUid]))
|
|
||||||
{
|
|
||||||
$aNewUids[] = $iUid;
|
$aNewUids[] = $iUid;
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue