Bot Forum: Fix opening thread on click (#6483)

This commit is contained in:
zubiden 2025-11-17 12:18:47 +04:00 committed by Alexander Zinchuk
parent 77173b21d8
commit a9e68aa473

View File

@ -64,7 +64,7 @@ const ChatForumLastMessage = ({
handleClick: handleOpenTopicClick,
handleMouseDown: handleOpenTopicMouseDown,
} = useFastClick((e: React.MouseEvent<HTMLDivElement>) => {
if (lastActiveTopic.unreadCount === 0 || chat.isForumAsMessages) return;
if (lastActiveTopic.unreadCount === 0 || (chat.isForumAsMessages && !chat.isBotForum)) return;
e.stopPropagation();
e.preventDefault();