Skip to content

Commit

Permalink
chore: refetch title
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-ae committed Dec 19, 2024
1 parent bf6b871 commit 70dd1c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/people/hiveChat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ export const HiveChatView: React.FC = observer(() => {
const refreshChatHistory = useCallback(async () => {
try {
await chat.loadChatHistory(chatId);
const selectedChat = chat.getChat(chatId);
if (selectedChat?.title) {
setTitle(selectedChat.title);
}
if (chatHistoryRef.current) {
chatHistoryRef.current.scrollTop = chatHistoryRef.current.scrollHeight;
}
Expand Down

0 comments on commit 70dd1c6

Please sign in to comment.