ChatList: Highlight selected forum after closing topic panel (#3339)

This commit is contained in:
Alexander Zinchuk 2023-06-18 12:03:49 +02:00
parent 0bdf689c4e
commit bc52d1a5e2

View File

@ -342,7 +342,8 @@ export default memo(withGlobal<OwnProps>(
type: messageListType,
} = selectCurrentMessageList(global) || {};
const isSelected = chatId === currentChatId && currentThreadId === MAIN_THREAD_ID;
const isSelectedForum = chatId === selectTabState(global).forumPanelChatId;
const isSelectedForum = (chat.isForum && chatId === currentChatId)
|| chatId === selectTabState(global).forumPanelChatId;
const user = privateChatUserId ? selectUser(global, privateChatUserId) : undefined;
const userStatus = privateChatUserId ? selectUserStatus(global, privateChatUserId) : undefined;