From 565a281d02da4a055d34eba635af4b992190b182 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Thu, 27 Apr 2023 18:53:30 +0400 Subject: [PATCH] Message: Fix comments button not showing when no full info is loaded (#3103) --- src/components/middle/MessageList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/middle/MessageList.tsx b/src/components/middle/MessageList.tsx index 71ffddd99..77490902d 100644 --- a/src/components/middle/MessageList.tsx +++ b/src/components/middle/MessageList.tsx @@ -743,7 +743,7 @@ export default memo(withGlobal( isLoadingBotInfo, botInfo, threadTopMessageId, - hasLinkedChat: Boolean(chatFullInfo?.linkedChatId), + hasLinkedChat: chatFullInfo ? Boolean(chatFullInfo.linkedChatId) : undefined, lastSyncTime: global.lastSyncTime, topic, noMessageSendingAnimation: !selectPerformanceSettingsValue(global, 'messageSendingAnimations'),