Skip to content
Snippets Groups Projects
Commit b66ee837 authored by DartDev's avatar DartDev Committed by Thalles Ferreira
Browse files

Issue #3117435 by DartDev: MAX_DEVICES check fires prematurely

parent d0d1f0a2
No related branches found
Tags 3.0.0
No related merge requests found
......@@ -141,7 +141,7 @@ class FirebaseMessageService extends FirebaseServiceBase {
*/
public function setRecipients($recipients) {
if (is_array($recipients)) {
if (count($recipients) < self::MAX_DEVICES) {
if (count($recipients) <= self::MAX_DEVICES) {
$this->body['registration_ids'] = $recipients;
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment