From 6697bb8ddf0713b9dd5e30765c3b484ab88accb1 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Sat, 25 Jun 2022 12:37:12 +0200 Subject: [PATCH] cleanup --- src/domain/session/room/timeline/tiles/BaseMessageTile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/BaseMessageTile.js b/src/domain/session/room/timeline/tiles/BaseMessageTile.js index 13d1dd78..29700e50 100644 --- a/src/domain/session/room/timeline/tiles/BaseMessageTile.js +++ b/src/domain/session/room/timeline/tiles/BaseMessageTile.js @@ -133,8 +133,7 @@ export class BaseMessageTile extends SimpleTile { const action = this._replyTile?.updateEntry(replyEntry, param); if (action?.shouldReplace || !this._replyTile) { this.disposeTracked(this._replyTile); - const tileClassForEntry = this._options.tileClassForEntry; - const ReplyTile = tileClassForEntry(replyEntry); + const ReplyTile = this._options.tileClassForEntry(replyEntry); if (ReplyTile) { this._replyTile = new ReplyTile(replyEntry, this._options); }