diff --git a/packages/twenty-server/src/engine/core-modules/messaging/services/timeline-messaging.service.ts b/packages/twenty-server/src/engine/core-modules/messaging/services/timeline-messaging.service.ts index 87a24166b5b6..371d4c0ebd55 100644 --- a/packages/twenty-server/src/engine/core-modules/messaging/services/timeline-messaging.service.ts +++ b/packages/twenty-server/src/engine/core-modules/messaging/services/timeline-messaging.service.ts @@ -44,8 +44,14 @@ export class TimelineMessagingService { }, }, }, + order: { + messages: { + receivedAt: 'DESC', + }, + }, skip: offset, take: pageSize, + relations: ['messages'], }); const messageThreads = await messageThreadRepository.find({