From 14034a0fba9bb6ce410a6c3b1e30ac589b979130 Mon Sep 17 00:00:00 2001 From: Sasha <118575614+weboko@users.noreply.github.com> Date: Tue, 19 Sep 2023 17:21:31 +0200 Subject: [PATCH] fix: fetch only last 30 minutes (#270) --- examples/web-chat/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web-chat/src/App.tsx b/examples/web-chat/src/App.tsx index 00101a2..6eb3df6 100644 --- a/examples/web-chat/src/App.tsx +++ b/examples/web-chat/src/App.tsx @@ -9,7 +9,7 @@ import { useMessages, usePersistentNick } from "./hooks"; const startTime = new Date(); // Only retrieve a week of history -startTime.setTime(Date.now() - 1000 * 60 * 60 * 24 * 7); +startTime.setTime(Date.now() - 1000 * 60 * 30); const endTime = new Date(); export default function App() {