From f7ea9cfeb2f3214378427ceb5ee24411667fe8fb Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 22 Feb 2019 12:22:36 +0100 Subject: [PATCH] rename all instances of permalinkCreator --- src/components/structures/MessagePanel.js | 2 +- src/components/structures/RoomView.js | 12 ++++++------ src/components/structures/TimelinePanel.js | 2 +- src/components/views/rooms/EventTile.js | 4 ++-- src/components/views/rooms/SearchResultTile.js | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 29d87f9d8f..185af4cd6d 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -525,7 +525,7 @@ module.exports = React.createClass({ eventSendStatus={mxEv.status} tileShape={this.props.tileShape} isTwelveHour={this.props.isTwelveHour} - permalinkCreator={this.props.permaLinkCreator} + permalinkCreator={this.props.permalinkCreator} last={last} isSelectedEvent={highlight} /> , ); diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 2dd1b4b4db..d1b932a202 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -443,8 +443,8 @@ module.exports = React.createClass({ } // stop tracking room changes to format permalinks - if (this.state.permaLinkCreator) { - this.state.permaLinkCreator.stop(); + if (this.state.permalinkCreator) { + this.state.permalinkCreator.stop(); } if (this.refs.roomView) { @@ -658,10 +658,10 @@ module.exports = React.createClass({ this._loadMembersIfJoined(room); this._calculateRecommendedVersion(room); this._updateE2EStatus(room); - if (!this.state.permaLinkCreator) { + if (!this.state.permalinkCreator) { const permalinkCreator = new RoomPermalinkCreator(room); permalinkCreator.start(); - this.setState({permaLinkCreator}); + this.setState({permalinkCreator}); } }, @@ -1230,7 +1230,7 @@ module.exports = React.createClass({ searchResult={result} searchHighlights={this.state.searchHighlights} resultLink={resultLink} - permalinkCreator={this.state.permaLinkCreator} + permalinkCreator={this.state.permalinkCreator} onWidgetLoad={onWidgetLoad} />); } return ret; @@ -1838,7 +1838,7 @@ module.exports = React.createClass({ showUrlPreview = {this.state.showUrlPreview} className="mx_RoomView_messagePanel" membersLoaded={this.state.membersLoaded} - permalinkCreator={this.state.permaLinkCreator} + permalinkCreator={this.state.permalinkCreator} />); let topUnreadMessagesBar = null; diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index 78b239939b..8890c26d42 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -1202,7 +1202,7 @@ var TimelinePanel = React.createClass({ return (