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