From c38a7e6756f183b9ceec023b0cd191983fe731c5 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 11 Mar 2019 15:02:33 +0000 Subject: [PATCH] Pass correct args when creating event permalink in context menu After the permalink API was changed in https://github.com/matrix-org/matrix-react-sdk/pull/2671, it seems we forgot to update this call site, so it was creating `/` links, instead of `/`. Fixes https://github.com/vector-im/riot-web/issues/9110 --- src/components/views/context_menus/MessageContextMenu.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 = (