From 24f8d67020bf249fc4439adbfc816a92699047df Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 4 Dec 2025 08:36:48 +0100 Subject: [PATCH] Fix bug in screen --- matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts | 2 +- matrixgw_frontend/src/routes/MatrixAuthCallback.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts b/matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts index 7da005d..e80ebe3 100644 --- a/matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts +++ b/matrixgw_frontend/src/api/matrix/MatrixApiEvent.ts @@ -74,7 +74,7 @@ export class MatrixApiEvent { await APIClient.exec({ method: "GET", uri: - `/matrix/room/${encodeURIComponent(room.id)}/events?limit=400` + + `/matrix/room/${encodeURIComponent(room.id)}/events?limit=200` + (from ? `&from=${from}` : ""), }) ).data as MatrixEventsList; diff --git a/matrixgw_frontend/src/routes/MatrixAuthCallback.tsx b/matrixgw_frontend/src/routes/MatrixAuthCallback.tsx index 1d5aa19..de6575e 100644 --- a/matrixgw_frontend/src/routes/MatrixAuthCallback.tsx +++ b/matrixgw_frontend/src/routes/MatrixAuthCallback.tsx @@ -41,7 +41,8 @@ export function MatrixAuthCallback(): React.ReactElement { }; load(); - }, [code, info, navigate, snackbar, state]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [code, state]); if (error) return (