mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
use this._entry here (once updated by super.updateEntry)
This commit is contained in:
parent
5f99c2360c
commit
2321228981
@ -117,16 +117,16 @@ export class BaseMessageTile extends SimpleTile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateEntry(entry, param, tilesCreator) {
|
updateEntry(entry, param, tilesCreator) {
|
||||||
this._updateReplyTileIfNeeded(tilesCreator);
|
|
||||||
const action = super.updateEntry(entry, param, tilesCreator);
|
const action = super.updateEntry(entry, param, tilesCreator);
|
||||||
if (action.shouldUpdate) {
|
if (action.shouldUpdate) {
|
||||||
this._updateReactions();
|
this._updateReactions();
|
||||||
}
|
}
|
||||||
|
this._updateReplyTileIfNeeded(tilesCreator);
|
||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateReplyTileIfNeeded(tilesCreator) {
|
_updateReplyTileIfNeeded(tilesCreator) {
|
||||||
const replyEntry = entry.contextEntry;
|
const replyEntry = this._entry.contextEntry;
|
||||||
if (replyEntry) {
|
if (replyEntry) {
|
||||||
// this is an update to contextEntry used for replyPreview
|
// this is an update to contextEntry used for replyPreview
|
||||||
const action = this._replyTile?.updateEntry(replyEntry, param, tilesCreator);
|
const action = this._replyTile?.updateEntry(replyEntry, param, tilesCreator);
|
||||||
|
Loading…
Reference in New Issue
Block a user