ChatList: Highlight selected forum after closing topic panel (#3339)
This commit is contained in:
parent
0bdf689c4e
commit
bc52d1a5e2
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user