From 51215fda16a931a438d3995c675000b91f3f6e05 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 13 Jan 2022 20:43:51 +0530 Subject: [PATCH] Rename tileCreator -> tilesCreator --- src/domain/session/room/timeline/tiles/BaseMessageTile.js | 6 +++--- src/domain/session/room/timeline/tilesCreator.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/BaseMessageTile.js b/src/domain/session/room/timeline/tiles/BaseMessageTile.js index bd7472e9..6e40cef8 100644 --- a/src/domain/session/room/timeline/tiles/BaseMessageTile.js +++ b/src/domain/session/room/timeline/tiles/BaseMessageTile.js @@ -21,7 +21,7 @@ import {getIdentifierColorNumber, avatarInitials, getAvatarHttpUrl} from "../../ export class BaseMessageTile extends SimpleTile { constructor(options) { super(options); - this._tileCreator = options.tileCreator; + this._tilesCreator = options.tilesCreator; this._date = this._entry.timestamp ? new Date(this._entry.timestamp) : null; this._isContinuation = false; this._reactions = null; @@ -123,7 +123,7 @@ export class BaseMessageTile extends SimpleTile { const action = this._replyTile.updateEntry(replyEntry); if (action?.shouldReplace) { this.disposeTracked(this._replyTile); - this._replyTile = this._tileCreator(replyEntry); + this._replyTile = this._tilesCreator(replyEntry); } if(action?.shouldUpdate) { this._replyTile.emitChange(); @@ -236,7 +236,7 @@ export class BaseMessageTile extends SimpleTile { if (!this._replyTile) { const entry = this._entry.contextEntry; if (entry) { - this._replyTile = this.track(this._tileCreator(entry)); + this._replyTile = this.track(this._tilesCreator(entry)); } } return this._replyTile; diff --git a/src/domain/session/room/timeline/tilesCreator.js b/src/domain/session/room/timeline/tilesCreator.js index 8634ea6f..945d9843 100644 --- a/src/domain/session/room/timeline/tilesCreator.js +++ b/src/domain/session/room/timeline/tilesCreator.js @@ -29,7 +29,7 @@ import {MissingAttachmentTile} from "./tiles/MissingAttachmentTile.js"; export function tilesCreator(baseOptions) { const creator = function tilesCreator(entry, emitUpdate) { - const options = Object.assign({entry, emitUpdate, tileCreator: creator}, baseOptions); + const options = Object.assign({entry, emitUpdate, tilesCreator: creator}, baseOptions); if (entry.isGap) { return new GapTile(options); } else if (entry.isPending && entry.pendingEvent.isMissingAttachments) {