1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Merge pull request #2774 from jryans/cm-permalink

Pass correct args when creating event permalink in context menu
This commit is contained in:
J. Ryan Stinnett
2019-03-11 15:22:05 +00:00
committed by GitHub

View File

@@ -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 = (