diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js index 3e55a6be9ef..504729f6290 100644 --- a/src/components/views/context_menus/MessageContextMenu.js +++ b/src/components/views/context_menus/MessageContextMenu.js @@ -307,10 +307,7 @@ module.exports = React.createClass({ let permalink; if (this.props.permalinkCreator) { - permalink = this.props.permalinkCreator.forEvent( - this.props.mxEvent.getRoomId(), - this.props.mxEvent.getId(), - ); + permalink = this.props.permalinkCreator.forEvent(this.props.mxEvent.getId()); } // XXX: if we use room ID, we should also include a server where the event can be found (other than in the domain of the event ID) const permalinkButton = (