Skip to content

Commit

Permalink
fix: [#5792] 新增消息时还原设置按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
DDMeaqua committed Nov 11, 2024
1 parent 108069a commit a2c9752
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,10 @@ function _Chat() {
const [attachImages, setAttachImages] = useState<string[]>([]);
const [uploading, setUploading] = useState(false);

useEffect(() => {
setHitBottom(true);
}, [session.messages]);

// prompt hints
const promptStore = usePromptStore();
const [promptHints, setPromptHints] = useState<RenderPrompt[]>([]);
Expand Down

0 comments on commit a2c9752

Please sign in to comment.