From f84ae4a1734f5b37f3836f7ce3de890168ae9049 Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Wed, 2 Jun 2021 13:12:03 +0530 Subject: [PATCH] Add await --- src/utils/exportUtils/HtmlExport.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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