From 8c345cede0b3a11c7ccc41ac940e9a8b889c382d Mon Sep 17 00:00:00 2001 From: William Grant Date: Wed, 17 May 2023 14:08:16 +1000 Subject: [PATCH] fix: added onclick function to subtitle fixed opening correct settings option depending on header option displayed --- .../header/ConversationHeaderSubtitle.tsx | 1 + .../header/ConversationHeaderTitle.tsx | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ts/components/conversation/header/ConversationHeaderSubtitle.tsx b/ts/components/conversation/header/ConversationHeaderSubtitle.tsx index ceb25417c..47a0d3b25 100644 --- a/ts/components/conversation/header/ConversationHeaderSubtitle.tsx +++ b/ts/components/conversation/header/ConversationHeaderSubtitle.tsx @@ -117,6 +117,7 @@ export const ConversationHeaderSubitle = (props: ConversationHeaderSubitleProps) { if (e.key === 'Enter') { e.preventDefault(); diff --git a/ts/components/conversation/header/ConversationHeaderTitle.tsx b/ts/components/conversation/header/ConversationHeaderTitle.tsx index b8794553a..71afa726f 100644 --- a/ts/components/conversation/header/ConversationHeaderTitle.tsx +++ b/ts/components/conversation/header/ConversationHeaderTitle.tsx @@ -109,7 +109,7 @@ export const ConversationHeaderTitle = () => { if (isRightPanelOn) { dispatch(closeRightPanel()); } else { - if (visibleTitleIndex === 2) { + if (visibleTitleIndex === subtitles.length - 1) { dispatch(setRightOverlayMode('disappearing-messages')); } else { dispatch(setRightOverlayMode('panel-settings')); @@ -131,16 +131,16 @@ export const ConversationHeaderTitle = () => { return (
-
+
{isMe ? ( - {i18n('noteToSelf')} + + {i18n('noteToSelf')} + ) : ( {convoName}