Bugfix: hide pagination when search has 0 messages

This commit is contained in:
the-djmaze 2024-04-08 16:14:30 +02:00
parent 2bcaf3c6ad
commit d59a326920
2 changed files with 3 additions and 3 deletions

View file

@ -121,7 +121,7 @@ computedPaginatorHelper = (koCurrentPage, koPageCount) => {
next = 0,
limit = 2;
if (1 < pageCount || (0 < pageCount && pageCount < currentPage)) {
if (1 < pageCount) {
if (pageCount < currentPage) {
fAdd(pageCount);
prev = pageCount;

View file

@ -879,8 +879,8 @@ class MailClient
}
}
if (\count($aUids)) {
$oMessageCollection->totalEmails = \count($aUids);
$oMessageCollection->totalEmails = \count($aUids);
if ($oMessageCollection->totalEmails) {
$aUids = \array_slice($aUids, $oParams->iOffset, $oParams->iLimit);
$this->MessageListByRequestIndexOrUids($oMessageCollection, new SequenceSet($aUids), $aAllThreads, $aUnseenUIDs);
}