diff --git a/src/app.tsx b/src/app.tsx index 20d3ac7..13778e9 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -327,6 +327,10 @@ export function App() { ) ) { chatStore.history.splice(i, 1); + chatStore.postBeginIndex = Math.max( + chatStore.postBeginIndex - 1, + 0 + ); setChatStore({ ...chatStore }); } }}