fix(turnero): save outgoing messages with canal='turnero' so they appear in chat

saveOutgoingMessage() now reads __app_meta.canal and stores it in conversations.
sendMediaById() accepts a $meta param and forwards it to saveOutgoingMessage.
chat_upload_media.php passes $extra (canal=turnero) to sendMediaById.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-03 08:32:23 -05:00
co-authored by Claude Sonnet 4.6
parent 5acd46df5a
commit 4d04fea1de
2 changed files with 17 additions and 15 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ try {
$caption ?: null,
$file['name'],
false,
$isVoice
$isVoice,
$extra
);
echo json_encode(['success' => true, 'media_type' => $mediaType, 'response' => $resp]);