mejoras
This commit is contained in:
@@ -14,8 +14,8 @@ try {
|
||||
if (!empty($entry['changes'])) {
|
||||
foreach ($entry['changes'] as $change) {
|
||||
$val = $change['value'] ?? [];
|
||||
if (!empty($val['messages'])) {
|
||||
foreach ($val['messages'] as $m) {
|
||||
if (!empty($val['conversations'])) {
|
||||
foreach ($val['conversations'] as $m) {
|
||||
$mid = $m['id'] ?? null;
|
||||
$from = $m['from'] ?? null;
|
||||
if ($mid) {
|
||||
@@ -33,9 +33,9 @@ try {
|
||||
}
|
||||
|
||||
if (empty($missing)) {
|
||||
echo "All recent messages found in conversations.\n";
|
||||
echo "All recent conversations found in conversations.\n";
|
||||
} else {
|
||||
echo "Missing messages (not found in conversations):\n";
|
||||
echo "Missing conversations (not found in conversations):\n";
|
||||
foreach ($missing as $m) {
|
||||
echo json_encode($m) . PHP_EOL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user