up
This commit is contained in:
@@ -49,7 +49,8 @@ try {
|
||||
|
||||
// Registrar la reacción en el mensaje objetivo (no crear un nuevo "reaction" como mensaje saliente)
|
||||
try {
|
||||
$update = ['reaction_emoji' => $emoji, 'reaction_to_message_id' => $message_id, 'updated_at' => date('Y-m-d H:i:s')];
|
||||
// Avoid updating `updated_at` because older schemas may not have it
|
||||
$update = ['reaction_emoji' => $emoji, 'reaction_to_message_id' => $message_id];
|
||||
// If send failed, optionally record a status on target (not mandatory)
|
||||
if (!$resp) $update['reaction_status'] = 'failed';
|
||||
|
||||
|
||||
+1
-1
@@ -253,7 +253,7 @@ class WhatsAppWebhook {
|
||||
// Try to update the referenced message (by message_id or id)
|
||||
$updated = $this->db->update(
|
||||
'conversations',
|
||||
['reaction_emoji' => $emoji, 'reaction_to_message_id' => $reactionTo, 'updated_at' => date('Y-m-d H:i:s')],
|
||||
['reaction_emoji' => $emoji, 'reaction_to_message_id' => $reactionTo],
|
||||
'message_id = :mid OR id = :mid',
|
||||
['mid' => $reactionTo]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user