Skip to content

Commit 6f0c0ce

Browse files
committed
fixup! perf: reduce number of avatar requests
Signed-off-by: Hamza Mahjoubi <[email protected]>
1 parent 32b5995 commit 6f0c0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IMAP/PreviewEnhancer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(IMAPClientFactory $clientFactory,
5555
*
5656
* @return Message[]
5757
*/
58-
public function process(Account $account, Mailbox $mailbox, array $messages, bool $preLoadAvatars = false, ?string $userId): array {
58+
public function process(Account $account, Mailbox $mailbox, array $messages, bool $preLoadAvatars = false, ?string $userId = null): array {
5959
$needAnalyze = array_reduce($messages, static function (array $carry, Message $message) {
6060
if ($message->getStructureAnalyzed()) {
6161
// Nothing to do

0 commit comments

Comments
 (0)