1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-25 03:43:33 +01:00

Exclude mailbox emails from recipients on reply

This commit is contained in:
FreeScout 2019-07-02 10:55:11 -07:00
parent 12c11e88d5
commit 7e9edd5d21

View File

@ -142,6 +142,14 @@ class ConversationsController extends Controller
}
}
// Exclude mailbox emails from $to_customers.
$mailbox_emails = $mailbox->getEmails();
foreach ($to_customers as $key => $to_customer) {
if (in_array($to_customer['email'], $mailbox_emails)) {
unset($to_customers[$key]);
}
}
// Previous conversations
$prev_conversations = [];
if ($customer) {