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
|
||||
const action = this._replyTile?.updateEntry(replyEntry);
|
||||
if (action?.shouldReplace) {
|
||||
this.disposeTracked(this._replyTile);
|
||||
this._replyTile = this._tileCreator(replyEntry);
|
||||
}
|
||||
else {
|
||||
|
@ -234,7 +235,7 @@ export class BaseMessageTile extends SimpleTile {
|
|||
if (!this._replyTile) {
|
||||
const entry = this._entry.contextEntry;
|
||||
if (entry) {
|
||||
this._replyTile = this._tileCreator(entry);
|
||||
this._replyTile = this.track(this._tileCreator(entry));
|
||||
}
|
||||
}
|
||||
return this._replyTile;
|
||||
|
|
Reference in a new issue