1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

Fix push message creation warnings

This commit is contained in:
Jake Barnby 2024-02-06 04:13:35 +13:00
parent 6e40973771
commit c32545fb49
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -463,7 +463,7 @@ class Messaging extends Action
$to = $message['to'];
$subject = $data['subject'];
$content = $data['content'];
$html = $data['html'];
$html = $data['html'] ?? false;
return new Email($to, $subject, $content, $fromName, $fromEmail, $replyToName, $replyToEmail, $cc, $bcc, null, $html);
}
@ -482,13 +482,13 @@ class Messaging extends Action
$to = $message['to'];
$title = $message['data']['title'];
$body = $message['data']['body'];
$data = $message['data']['data'];
$action = $message['data']['action'];
$sound = $message['data']['sound'];
$icon = $message['data']['icon'];
$color = $message['data']['color'];
$tag = $message['data']['tag'];
$badge = $message['data']['badge'];
$data = $message['data']['data'] ?? null;
$action = $message['data']['action'] ?? null;
$sound = $message['data']['sound'] ?? null;
$icon = $message['data']['icon'] ?? null;
$color = $message['data']['color'] ?? null;
$tag = $message['data']['tag'] ?? null;
$badge = $message['data']['badge'] ?? null;
return new Push($to, $title, $body, $data, $action, $sound, $icon, $color, $tag, $badge);
}