show description in room header
This commit is contained in:
@@ -35,6 +35,7 @@ export async function getRooms(mailboxId) {
|
||||
address.email AS user,
|
||||
app_room.owner_id AS userId,
|
||||
app_room.notSeen,
|
||||
app_room.room_type AS roomType,
|
||||
mailbox_message.mailbox_id AS mailboxId
|
||||
FROM app_room
|
||||
INNER JOIN message
|
||||
@@ -91,7 +92,7 @@ export async function getMessages(roomId) {
|
||||
|
||||
WHERE msg.room_id = ?
|
||||
GROUP BY msg.message_id
|
||||
ORDER BY message.idate;
|
||||
ORDER BY message.idate DESC;
|
||||
`;
|
||||
const values = [roomId];
|
||||
return await execQueryAsync(query, values);
|
||||
|
||||
Reference in New Issue
Block a user