permalink is one word
This commit is contained in:
parent
476b81fc1e
commit
f97ea37717
6 changed files with 30 additions and 30 deletions
|
@ -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} />
|
||||
</li>,
|
||||
);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1202,7 +1202,7 @@ var TimelinePanel = React.createClass({
|
|||
return (
|
||||
<MessagePanel ref="messagePanel"
|
||||
room={this.props.timelineSet.room}
|
||||
permaLinkCreator={this.props.permaLinkCreator}
|
||||
permalinkCreator={this.props.permaLinkCreator}
|
||||
hidden={this.props.hidden}
|
||||
backPaginating={this.state.backPaginating}
|
||||
forwardPaginating={forwardPaginating}
|
||||
|
|
|
@ -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} />);
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ const MAX_SERVER_CANDIDATES = 3;
|
|||
// The receiving user can then manually append the known-good server to
|
||||
// the list and magically have the link work.
|
||||
|
||||
export class RoomPermaLinkCreator {
|
||||
export class RoomPermalinkCreator {
|
||||
constructor(room) {
|
||||
this._room = room;
|
||||
this._highestPlUserId = null;
|
||||
|
@ -243,9 +243,9 @@ export function makeRoomPermalink(roomId) {
|
|||
|
||||
const client = MatrixClientPeg.get();
|
||||
const room = client.getRoom(roomId);
|
||||
const permaLinkCreator = new RoomPermaLinkCreator(room);
|
||||
permaLinkCreator.load();
|
||||
return permaLinkCreator.forRoom();
|
||||
const permalinkCreator = new RoomPermalinkCreator(room);
|
||||
permalinkCreator.load();
|
||||
return permalinkCreator.forRoom();
|
||||
}
|
||||
|
||||
export function makeGroupPermalink(groupId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue