Skip to content

Commit

Permalink
Removing early return if newly created list has auto_subscribe disabled
Browse files Browse the repository at this point in the history
This check caused lists without auto_subscribe not to have "unsubscribed"
records. Features dependent on user subscriptions completeness were not
able to subscribe user to the list, because it never appeared in their
preferences.

remp2020/crm-remp-mailer-module#1
  • Loading branch information
rootpd committed Jul 13, 2020
1 parent 88f0d15 commit cf930f5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Mailer/app/hermes/ListCreatedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ public function handle(MessageInterface $message): bool
}

$list = $this->listsRepository->find($payload['list_id']);
if (!$list->auto_subscribe) {
return true;
}

$page = 1;
while ($users = $this->userProvider->list([], $page)) {
Expand Down

0 comments on commit cf930f5

Please sign in to comment.