show description in room header

This commit is contained in:
grimhilt
2023-04-03 20:11:07 +02:00
parent 833eacc91d
commit 569c271c6c
10 changed files with 118 additions and 51 deletions

View File

@@ -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);