From 6e09b7c6bcc692ce87924d7b49940f535c29e92a Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 7 Jan 2022 11:19:46 +0100 Subject: [PATCH] Chat: Do not show "Add to folder..." when there is no folders (#1628) --- src/components/left/main/Chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/left/main/Chat.tsx b/src/components/left/main/Chat.tsx index 6de75589a..8101a1866 100644 --- a/src/components/left/main/Chat.tsx +++ b/src/components/left/main/Chat.tsx @@ -379,7 +379,7 @@ export default memo(withGlobal( animationLevel: global.settings.byKey.animationLevel, isSelected, canScrollDown: isSelected && messageListType === 'thread', - canChangeFolder: Boolean(global.chatFolders.orderedIds), + canChangeFolder: Boolean(global.chatFolders.orderedIds?.length), lastSyncTime: global.lastSyncTime, ...(isOutgoing && { lastMessageOutgoingStatus: selectOutgoingStatus(global, chat.lastMessage) }), ...(privateChatUserId && {