Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 1611033

Browse files
committed
Fix bug with message context menu
1 parent 2203b7b commit 1611033

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/views/context_menus/MessageContextMenu.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,11 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
382382
public render(): JSX.Element {
383383
const cli = MatrixClientPeg.get();
384384
const me = cli.getUserId();
385-
const { mxEvent, rightClick, link, eventTileOps, reactions, collapseReplyChain } = this.props;
385+
const {
386+
mxEvent, rightClick, link, eventTileOps, reactions, collapseReplyChain,
387+
getRelationsForEvent, permalinkCreator,
388+
...other
389+
} = this.props;
386390
const eventStatus = mxEvent.status;
387391
const unsentReactionsCount = this.getUnsentReactions().length;
388392
const contentActionable = isContentActionable(mxEvent);
@@ -747,7 +751,7 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
747751
return (
748752
<React.Fragment>
749753
<IconizedContextMenu
750-
{...this.props}
754+
{...other}
751755
className="mx_MessageContextMenu"
752756
compact={true}
753757
data-testid="mx_MessageContextMenu"

0 commit comments

Comments
 (0)