diff --git a/src/domain/session/room/ComposerViewModel.js b/src/domain/session/room/ComposerViewModel.js index 81a8fc17..730e1b20 100644 --- a/src/domain/session/room/ComposerViewModel.js +++ b/src/domain/session/room/ComposerViewModel.js @@ -30,6 +30,7 @@ export class ComposerViewModel extends ViewModel { this._replyVM = this.disposeTracked(this._replyVM); if (entry) { this._replyVM = this.track(this._roomVM._createTile(entry)); + this._replyVM.notifyVisible(); } this.emitChange("replyViewModel"); this.emit("focus"); diff --git a/src/domain/session/room/timeline/tiles/BaseMessageTile.js b/src/domain/session/room/timeline/tiles/BaseMessageTile.js index d04ee495..6b0b4356 100644 --- a/src/domain/session/room/timeline/tiles/BaseMessageTile.js +++ b/src/domain/session/room/timeline/tiles/BaseMessageTile.js @@ -31,6 +31,12 @@ export class BaseMessageTile extends SimpleTile { this._updateReplyTileIfNeeded(options.tilesCreator, undefined); } + notifyVisible() { + super.notifyVisible(); + this._replyTile?.notifyVisible(); + } + + get _mediaRepository() { return this._room.mediaRepository; }