Saved Messages: Remove Open Chat button from My Notes (#6803)
This commit is contained in:
parent
9cd17b4921
commit
bc7468265d
@ -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);
|
||||
|
||||
|
||||
@ -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 || (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user