From e0b0b68346fad9fd2a6a7aa5dcde337513501f7c Mon Sep 17 00:00:00 2001 From: Daniel Avila Date: Thu, 6 Apr 2023 16:52:05 -0400 Subject: [PATCH] feat(Conversation.jsx): set document title when conversation is switched --- client/src/components/Conversations/Conversation.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/components/Conversations/Conversation.jsx b/client/src/components/Conversations/Conversation.jsx index 3fc07dea3e..c95c9d1f4b 100644 --- a/client/src/components/Conversations/Conversation.jsx +++ b/client/src/components/Conversations/Conversation.jsx @@ -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); };