fix: show disappearing messages subtitle in convo header

when it is toggled on
pull/2971/head
William Grant 2 years ago
parent b88842b687
commit 6c47fd274f

@ -129,9 +129,9 @@ export const ConversationHeaderTitle = () => {
setVisibleSubtitle('notifications'); 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 // eslint-disable-next-line react-hooks/exhaustive-deps
}, [convoName]); }, [convoName, disappearingMessageSubtitle]);
useEffect(() => { useEffect(() => {
const newSubtitlesArray: any = []; const newSubtitlesArray: any = [];

Loading…
Cancel
Save