This commit is contained in:
Lizandro Guarnizo
2026-01-24 00:47:13 -05:00
parent 7b2e17c740
commit 41b4c2fb32
5 changed files with 1035 additions and 10 deletions
+8 -2
View File
@@ -43,7 +43,10 @@ try {
c.message_type as message_type,
c.status as status,
c.created_at as created_at,
COALESCE(c.is_read, 0) as is_read
COALESCE(c.is_read, 0) as is_read,
c.reply_to_message_id as reply_to_message_id,
c.reaction_emoji as reaction_emoji,
c.reaction_to_message_id as reaction_to_message_id
FROM conversations c
LEFT JOIN users u ON c.user_id = u.id
WHERE c.user_id = :user_id";
@@ -121,7 +124,10 @@ try {
'direction' => $msg['direction'] ?? 'incoming',
'message_type' => $msg['message_type'] ?? 'text',
'status' => $msg['status'] ?? 'sent',
'created_at' => $msg['created_at']
'created_at' => $msg['created_at'],
'reply_to_message_id' => $msg['reply_to_message_id'] ?? null,
'reaction_emoji' => $msg['reaction_emoji'] ?? null,
'reaction_to_message_id' => $msg['reaction_to_message_id'] ?? null
];
}, $conversations);