This commit is contained in:
Lizandro Guarnizo
2026-02-20 09:07:37 -05:00
parent 276af13387
commit 421a5a4d7c
10 changed files with 921 additions and 5 deletions
+5 -1
View File
@@ -58,13 +58,17 @@ try {
message_type,
content,
media_url,
local_file,
local_thumb,
filename,
mime_type,
status,
created_at
FROM conversations
WHERE user_id = ?
AND (
message_type = 'text'
OR (message_type IN ('image', 'audio', 'video', 'document') AND media_url IS NOT NULL AND media_url != '')
OR (message_type IN ('image', 'audio', 'video', 'document', 'sticker') AND (media_url IS NOT NULL AND media_url != '' OR local_file IS NOT NULL AND local_file != ''))
)
ORDER BY created_at ASC",
[$user_id]