rename all instances of permalinkCreator

This commit is contained in:
Bruno Windels 2019-02-22 12:22:36 +01:00
parent be3d12721c
commit f7ea9cfeb2
5 changed files with 11 additions and 11 deletions

View file

@ -544,8 +544,8 @@ module.exports = withMatrixClient(React.createClass({
});
let permalink = "#";
if (this.props.permaLinkCreator) {
permalink = this.props.permaLinkCreator.forEvent(this.props.mxEvent.getId());
if (this.props.permalinkCreator) {
permalink = this.props.permalinkCreator.forEvent(this.props.mxEvent.getId());
}
const readAvatars = this.getReadAvatars();

View file

@ -56,7 +56,7 @@ module.exports = React.createClass({
}
if (EventTile.haveTileForEvent(ev)) {
ret.push(<EventTile key={eventId+"+"+j} mxEvent={ev} contextual={contextual} highlights={highlights}
permalinkCreator={this.props.permaLinkCreator}
permalinkCreator={this.props.permalinkCreator}
highlightLink={this.props.resultLink}
onWidgetLoad={this.props.onWidgetLoad} />);
}