Compare commits
No commits in common. "a7010dad534e927f7915e172abf76bcc48ce0f37" and "4a3410de812b58cafb7e5068aecbbf20da44eb90" have entirely different histories.
a7010dad53
...
4a3410de81
3 changed files with 5 additions and 11 deletions
|
@ -109,16 +109,10 @@ class MMFCustomersGroupsServiceProvider extends ServiceProvider {
|
||||||
$emails = new Collection;
|
$emails = new Collection;
|
||||||
foreach ( $groups as $group_id ) {
|
foreach ( $groups as $group_id ) {
|
||||||
$group = CustomersGroup::find($group_id);
|
$group = CustomersGroup::find($group_id);
|
||||||
$emails = $emails->concat($group->emails());
|
$emails->concat($group->emails());
|
||||||
}
|
}
|
||||||
$emails = $emails->unique('email')->pluck('email');
|
$emails = $emails->unique();
|
||||||
// Update the list of cc emails.
|
// TODO: Update $conversation to include this list of e-mails.
|
||||||
$cc = array_unique(array_merge(
|
|
||||||
$conversation->getCcArray(),
|
|
||||||
$emails->toArray()
|
|
||||||
));
|
|
||||||
$conversation->setCc($cc);
|
|
||||||
$conversation->save();
|
|
||||||
}, 20, 2);
|
}, 20, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "millions-missing-france/freescout-customers-groups",
|
"name": "millions-missing-france/freescout-customers-groups",
|
||||||
"description": "Freescout customers groups - Set groups of Freescout Customers for easier group emailing",
|
"description": "Freescout customers groups - Set groups of Freescout Customers for easier group emailing",
|
||||||
"version": "0.1.0",
|
"version": "0.0.0",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"license": ["AGPL-3.0-only"],
|
"license": ["AGPL-3.0-only"],
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "MMFCustomersGroups",
|
"name": "MMFCustomersGroups",
|
||||||
"alias": "mmfcustomersgroups",
|
"alias": "mmfcustomersgroups",
|
||||||
"description": "Freescout customers groups - Set groups of Freescout Customers for easier group emailing",
|
"description": "Freescout customers groups - Set groups of Freescout Customers for easier group emailing",
|
||||||
"version": "0.1.0",
|
"version": "0.0.0",
|
||||||
"detailsUrl": "",
|
"detailsUrl": "",
|
||||||
"author": "Millions Missing FRANCE",
|
"author": "Millions Missing FRANCE",
|
||||||
"authorUrl": "info@millionsmissing.fr",
|
"authorUrl": "info@millionsmissing.fr",
|
||||||
|
|
Loading…
Reference in a new issue