Fix bug in screen
This commit is contained in:
@@ -74,7 +74,7 @@ export class MatrixApiEvent {
|
|||||||
await APIClient.exec({
|
await APIClient.exec({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
uri:
|
uri:
|
||||||
`/matrix/room/${encodeURIComponent(room.id)}/events?limit=400` +
|
`/matrix/room/${encodeURIComponent(room.id)}/events?limit=200` +
|
||||||
(from ? `&from=${from}` : ""),
|
(from ? `&from=${from}` : ""),
|
||||||
})
|
})
|
||||||
).data as MatrixEventsList;
|
).data as MatrixEventsList;
|
||||||
|
|||||||
@@ -41,7 +41,8 @@ export function MatrixAuthCallback(): React.ReactElement {
|
|||||||
};
|
};
|
||||||
|
|
||||||
load();
|
load();
|
||||||
}, [code, info, navigate, snackbar, state]);
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [code, state]);
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user