forked from mystiq/hydrogen-web
track reply-tile
This commit is contained in:
parent
a77b9d9027
commit
58dd25b58d
1 changed files with 2 additions and 1 deletions
|
@ -121,6 +121,7 @@ export class BaseMessageTile extends SimpleTile {
|
||||||
// this is an update to contextEntry used for replyPreview
|
// this is an update to contextEntry used for replyPreview
|
||||||
const action = this._replyTile?.updateEntry(replyEntry);
|
const action = this._replyTile?.updateEntry(replyEntry);
|
||||||
if (action?.shouldReplace) {
|
if (action?.shouldReplace) {
|
||||||
|
this.disposeTracked(this._replyTile);
|
||||||
this._replyTile = this._tileCreator(replyEntry);
|
this._replyTile = this._tileCreator(replyEntry);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -234,7 +235,7 @@ export class BaseMessageTile extends SimpleTile {
|
||||||
if (!this._replyTile) {
|
if (!this._replyTile) {
|
||||||
const entry = this._entry.contextEntry;
|
const entry = this._entry.contextEntry;
|
||||||
if (entry) {
|
if (entry) {
|
||||||
this._replyTile = this._tileCreator(entry);
|
this._replyTile = this.track(this._tileCreator(entry));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this._replyTile;
|
return this._replyTile;
|
||||||
|
|
Loading…
Reference in a new issue