feat(Conversation.jsx): set document title when conversation is switched

This commit is contained in:
Daniel Avila 2023-04-06 16:52:05 -04:00
parent 31cef16cc3
commit e0b0b68346

View file

@ -32,6 +32,9 @@ export default function Conversation({ conversation, retainView }) {
// stop existing submission
setSubmission(null);
// set document title
document.title = title;
// set conversation to the new conversation
switchToConversation(conversation);
};