[ticket/17489] Fix messenger queue won't be saved

PHPBB-17489
This commit is contained in:
rxu 2025-04-03 15:46:14 +07:00
parent 3dc1e6fc8e
commit 1f1a02d086
No known key found for this signature in database
GPG key ID: 8117904FEDEFDD17

View file

@ -126,16 +126,13 @@ abstract class messenger_base extends \phpbb\notification\method\base
], $notification->get_email_template_variables()));
$messenger_method->send();
// Save the queue in the messenger method class (has to be called or these messages could be lost)
$messenger_method->save_queue();
}
}
}
// Save the queue in the messenger method class (has to be called or these messages could be lost)
foreach ($messenger_collection_iterator as $messenger_method)
{
$messenger_method->save_queue();
}
// We're done, empty the queue
$this->empty_queue();
}