rename two methods

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2018-04-27 11:47:18 +01:00
parent 3050553fc2
commit 68dd57f56e
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
3 changed files with 5 additions and 5 deletions

View File

@ -232,7 +232,7 @@ export default class ReplyThread extends React.Component {
return {body, html};
}
static getReplyEvContent(ev) {
static makeReplyMixIn(ev) {
if (!ev) return {};
return {
'm.relates_to': {
@ -243,7 +243,7 @@ export default class ReplyThread extends React.Component {
};
}
static getThread(parentEv, onWidgetLoad, ref) {
static makeThread(parentEv, onWidgetLoad, ref) {
if (!SettingsStore.isFeatureEnabled("feature_rich_quoting") || !ReplyThread.getParentEventId(parentEv)) {
return <div />;
}

View File

@ -666,7 +666,7 @@ module.exports = withMatrixClient(React.createClass({
{ this._renderE2EPadlock() }
{
this.props.tileShape === 'reply_preview'
&& ReplyThread.getThread(this.props.mxEvent, this.props.onWidgetLoad, 'replyThread')
&& ReplyThread.makeThread(this.props.mxEvent, this.props.onWidgetLoad, 'replyThread')
}
<EventTileType ref="tile"
mxEvent={this.props.mxEvent}
@ -691,7 +691,7 @@ module.exports = withMatrixClient(React.createClass({
{ timestamp }
</a>
{ this._renderE2EPadlock() }
{ ReplyThread.getThread(this.props.mxEvent, this.props.onWidgetLoad, 'replyThread') }
{ ReplyThread.makeThread(this.props.mxEvent, this.props.onWidgetLoad, 'replyThread') }
<EventTileType ref="tile"
mxEvent={this.props.mxEvent}
highlights={this.props.highlights}

View File

@ -856,7 +856,7 @@ export default class MessageComposerInput extends React.Component {
let content = contentHTML ? sendHtmlFn(contentText, contentHTML) : sendTextFn(contentText);
if (replyingToEv) {
const replyContent = ReplyThread.getReplyEvContent(replyingToEv);
const replyContent = ReplyThread.makeReplyMixIn(replyingToEv);
content = Object.assign(replyContent, content);
// Part of Replies fallback support - prepend the text we're sending with the text we're replying to