From 6c47fd274fa54f7423e619c1aa2a97c73e68a8f4 Mon Sep 17 00:00:00 2001 From: William Grant Date: Thu, 14 Sep 2023 10:51:44 +1000 Subject: [PATCH] fix: show disappearing messages subtitle in convo header when it is toggled on --- ts/components/conversation/header/ConversationHeaderTitle.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/components/conversation/header/ConversationHeaderTitle.tsx b/ts/components/conversation/header/ConversationHeaderTitle.tsx index d88e8628b..890b03dae 100644 --- a/ts/components/conversation/header/ConversationHeaderTitle.tsx +++ b/ts/components/conversation/header/ConversationHeaderTitle.tsx @@ -129,9 +129,9 @@ export const ConversationHeaderTitle = () => { setVisibleSubtitle('notifications'); } } - // We only want this to change when a new conversation is selected + // We only want this to change when a new conversation is selected or disappearing messages is toggled // eslint-disable-next-line react-hooks/exhaustive-deps - }, [convoName]); + }, [convoName, disappearingMessageSubtitle]); useEffect(() => { const newSubtitlesArray: any = [];