Forum Panel: Fix context menu for topics (#3332)

This commit is contained in:
Alexander Zinchuk 2023-06-18 12:03:36 +02:00
parent 8dbb4402a4
commit 89ccff7d9a
2 changed files with 1 additions and 3 deletions

View File

@ -168,6 +168,7 @@ const Topic: FC<OwnProps & StateProps> = ({
style={style}
href={IS_OPEN_IN_NEW_TAB_SUPPORTED ? `#${createLocationHash(chatId, 'thread', topic.id)}` : undefined}
contextActions={contextActions}
withPortalForMenu
ref={ref}
>
<div className="info">

View File

@ -53,8 +53,6 @@ export default function useTopicContextActions({
},
};
const newTabActionSeparator = actionOpenInNewTab && { isSeparator: true, key: 'newTabSeparator' };
const actionUnreadMark = topic.unreadCount || !wasOpened
? {
title: lang('MarkAsRead'),
@ -110,7 +108,6 @@ export default function useTopicContextActions({
return compact([
actionOpenInNewTab,
newTabActionSeparator,
actionPin,
actionUnreadMark,
actionMute,