21 $isAddedQuote = filter_var(($contextParameters[
'isAddedQuote'] ??
null), FILTER_VALIDATE_BOOLEAN);
22 $messageId = $contextParameters[
'messageId'];
23 $messageIds = $contextParameters[
'messageIds'];
25 if (!$moduleId || !$contextId)
27 return [
'messages' => []];
30 if (!self::isNeededMailMessageContext($moduleId, $contextId, $isAddedQuote, $messageId, $messageIds))
32 return [
'messages' => []];
38 $messageThreadLoader->loadFullThreadMessageIds();
39 $messageIds = $messageThreadLoader->getThreadMessageIds();
44 return [
'messages' => []];
47 return self::loadMessages($messageIds);
63 if (!str_starts_with($contextId,
'mail_reply') && !str_starts_with($contextId,
'crm_mail_reply'))