From 5bcee2ea9d7497d5572dbe29dec0c0ed4ee98360 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 3 Dec 2025 20:39:26 +0100 Subject: [PATCH] Reduce the number of loaded messages per conversations --- matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts b/matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts index 28068e3..7da005d 100644 --- a/matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts +++ b/matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts @@ -74,8 +74,8 @@ export class MatrixApiEvent { await APIClient.exec({ method: "GET", uri: - `/matrix/room/${encodeURIComponent(room.id)}/events` + - (from ? `?from=${from}` : ""), + `/matrix/room/${encodeURIComponent(room.id)}/events?limit=400` + + (from ? `&from=${from}` : ""), }) ).data as MatrixEventsList; }