From 2ff72c8df1620d23ecdb5b90ea8ba63c10afcc88 Mon Sep 17 00:00:00 2001 From: Sasha Date: Tue, 19 Sep 2023 17:08:44 +0200 Subject: [PATCH] fix: fetch only last 30 minutes --- 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() {