Bot Forum: Fix opening thread on click (#6483)
This commit is contained in:
parent
77173b21d8
commit
a9e68aa473
@ -64,7 +64,7 @@ const ChatForumLastMessage = ({
|
|||||||
handleClick: handleOpenTopicClick,
|
handleClick: handleOpenTopicClick,
|
||||||
handleMouseDown: handleOpenTopicMouseDown,
|
handleMouseDown: handleOpenTopicMouseDown,
|
||||||
} = useFastClick((e: React.MouseEvent<HTMLDivElement>) => {
|
} = useFastClick((e: React.MouseEvent<HTMLDivElement>) => {
|
||||||
if (lastActiveTopic.unreadCount === 0 || chat.isForumAsMessages) return;
|
if (lastActiveTopic.unreadCount === 0 || (chat.isForumAsMessages && !chat.isBotForum)) return;
|
||||||
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user