up
This commit is contained in:
@@ -31,11 +31,15 @@ try {
|
||||
id,
|
||||
user_id,
|
||||
COALESCE(content, message_text) as content,
|
||||
message_id,
|
||||
c.media_url,
|
||||
u.phone_number as user_phone,
|
||||
direction,
|
||||
message_type,
|
||||
status,
|
||||
created_at
|
||||
FROM conversations
|
||||
FROM conversations c
|
||||
LEFT JOIN users u ON c.user_id = u.id
|
||||
WHERE user_id = :user_id
|
||||
UNION ALL
|
||||
SELECT
|
||||
@@ -76,6 +80,9 @@ try {
|
||||
'id' => intval($msg['id']),
|
||||
'user_id' => intval($msg['user_id']),
|
||||
'content' => $msg['content'] ?? '',
|
||||
'message_id' => $msg['message_id'] ?? null,
|
||||
'media_url' => $msg['media_url'] ?? null,
|
||||
'user_phone' => $msg['user_phone'] ?? null,
|
||||
'direction' => $msg['direction'] ?? 'incoming',
|
||||
'message_type' => $msg['message_type'] ?? 'text',
|
||||
'status' => $msg['status'] ?? 'sent',
|
||||
|
||||
Reference in New Issue
Block a user