Merge pull request #644 from vector-im/bwindels/fix-images-in-replies

fix images not loading in replies
This commit is contained in:
Bruno Windels 2022-01-17 16:51:09 +01:00 committed by GitHub
commit acc9167991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -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");

View file

@ -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;
}