mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
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 `<room>/<room>` links, instead of `<room>/<event>`. Fixes https://github.com/vector-im/riot-web/issues/9110
This commit is contained in:
parent
8940c4e06f
commit
c38a7e6756
@ -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 = (
|
||||
|
Loading…
Reference in New Issue
Block a user