Saved Messages: Remove Open Chat button from My Notes (#6803)

This commit is contained in:
Alexander Zinchuk 2026-03-31 11:29:07 +02:00
parent 9cd17b4921
commit bc7468265d
2 changed files with 6 additions and 2 deletions

View File

@ -274,7 +274,9 @@ const MessageList = ({
const scrollSnapDisabledTimerRef = useRef<number>();
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);

View File

@ -823,7 +823,9 @@ export default memo(withGlobal<OwnProps>(
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 || (