From f97ea37717e90d2549ed8479a79ee4d38ca8bb7e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 22 Feb 2019 11:45:43 +0100 Subject: [PATCH] permalink is one word --- src/components/structures/MessagePanel.js | 2 +- src/components/structures/RoomView.js | 10 +++--- src/components/structures/TimelinePanel.js | 2 +- .../views/rooms/SearchResultTile.js | 2 +- src/matrix-to.js | 8 ++--- test/matrix-to-test.js | 36 +++++++++---------- 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index a6c43ecc8e..29d87f9d8f 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 54ef6be558..2dd1b4b4db 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -30,7 +30,7 @@ import Promise from 'bluebird'; import filesize from 'filesize'; const classNames = require("classnames"); import { _t } from '../../languageHandler'; -import {RoomPermaLinkCreator} from "../../matrix-to"; +import {RoomPermalinkCreator} from "../../matrix-to"; const MatrixClientPeg = require("../../MatrixClientPeg"); const ContentMessages = require("../../ContentMessages"); @@ -659,8 +659,8 @@ module.exports = React.createClass({ this._calculateRecommendedVersion(room); this._updateE2EStatus(room); if (!this.state.permaLinkCreator) { - const permaLinkCreator = new RoomPermaLinkCreator(room); - permaLinkCreator.start(); + const permalinkCreator = new RoomPermalinkCreator(room); + permalinkCreator.start(); 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 1dc9162ef1..78b239939b 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -1202,7 +1202,7 @@ var TimelinePanel = React.createClass({ return (