mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 12:58:53 +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:
commit
efad7f5952
1 changed files with 1 additions and 4 deletions
|
@ -307,10 +307,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
let permalink;
|
let permalink;
|
||||||
if (this.props.permalinkCreator) {
|
if (this.props.permalinkCreator) {
|
||||||
permalink = this.props.permalinkCreator.forEvent(
|
permalink = this.props.permalinkCreator.forEvent(this.props.mxEvent.getId());
|
||||||
this.props.mxEvent.getRoomId(),
|
|
||||||
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)
|
// 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 = (
|
const permalinkButton = (
|
||||||
|
|
Loading…
Reference in a new issue