From 23212289812fc23339db527fd0cc6ab94c132719 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 14 Jan 2022 16:20:14 +0100 Subject: [PATCH] use this._entry here (once updated by super.updateEntry) --- src/domain/session/room/timeline/tiles/BaseMessageTile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/BaseMessageTile.js b/src/domain/session/room/timeline/tiles/BaseMessageTile.js index ae447b3c..b82a761a 100644 --- a/src/domain/session/room/timeline/tiles/BaseMessageTile.js +++ b/src/domain/session/room/timeline/tiles/BaseMessageTile.js @@ -117,16 +117,16 @@ export class BaseMessageTile extends SimpleTile { } updateEntry(entry, param, tilesCreator) { - this._updateReplyTileIfNeeded(tilesCreator); const action = super.updateEntry(entry, param, tilesCreator); if (action.shouldUpdate) { this._updateReactions(); } + this._updateReplyTileIfNeeded(tilesCreator); return action; } _updateReplyTileIfNeeded(tilesCreator) { - const replyEntry = entry.contextEntry; + const replyEntry = this._entry.contextEntry; if (replyEntry) { // this is an update to contextEntry used for replyPreview const action = this._replyTile?.updateEntry(replyEntry, param, tilesCreator);