diff --git a/src/utils/exportUtils/HtmlExport.tsx b/src/utils/exportUtils/HtmlExport.tsx index 47b318c409..f4fa4d0cf4 100644 --- a/src/utils/exportUtils/HtmlExport.tsx +++ b/src/utils/exportUtils/HtmlExport.tsx @@ -213,9 +213,9 @@ export default class HTMLExporter extends Exporter { } - protected getEventTile(mxEv: MatrixEvent, continuation: boolean, mediaSrc?: string) { + protected async getEventTile(mxEv: MatrixEvent, continuation: boolean, mediaSrc?: string) { const hasAvatar = this.hasAvatar(mxEv); - if (hasAvatar) this.saveAvatarIfNeeded(mxEv); + if (hasAvatar) await this.saveAvatarIfNeeded(mxEv); return