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:
parent
12c11e88d5
commit
7e9edd5d21
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user