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

Commit

Permalink
Merge pull request #2774 from jryans/cm-permalink
Browse files Browse the repository at this point in the history
Pass correct args when creating event permalink in context menu
  • Loading branch information
jryans authored Mar 11, 2019
2 parents 8940c4e + c38a7e6 commit efad7f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/views/context_menus/MessageContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit efad7f5

Please sign in to comment.