diff --git a/src/components/middle/MessageList.tsx b/src/components/middle/MessageList.tsx index b21812c9d..7fb49ae6c 100644 --- a/src/components/middle/MessageList.tsx +++ b/src/components/middle/MessageList.tsx @@ -274,7 +274,9 @@ const MessageList = ({ const scrollSnapDisabledTimerRef = useRef(); const isSavedDialog = getIsSavedDialog(chatId, threadId, currentUserId); - const hasOpenChatButton = isSavedDialog && threadId !== ANONYMOUS_USER_ID; + const hasOpenChatButton = isSavedDialog + && threadId !== ANONYMOUS_USER_ID + && threadId !== currentUserId; const areMessagesLoaded = Boolean(messageIds); diff --git a/src/components/middle/MiddleColumn.tsx b/src/components/middle/MiddleColumn.tsx index 86afb57e9..208686753 100644 --- a/src/components/middle/MiddleColumn.tsx +++ b/src/components/middle/MiddleColumn.tsx @@ -823,7 +823,9 @@ export default memo(withGlobal( const topics = selectTopics(global, chatId); const isSavedDialog = getIsSavedDialog(chatId, threadId, global.currentUserId); - const canShowOpenChatButton = isSavedDialog && threadId !== ANONYMOUS_USER_ID; + const canShowOpenChatButton = isSavedDialog + && threadId !== ANONYMOUS_USER_ID + && threadId !== global.currentUserId; const canUnpin = chat && ( isPrivate || (