up
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user