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'),