From 409213ceb4adbae2e83b875a9e1bc9e8233b6022 Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Mon, 31 May 2021 19:07:49 +0530 Subject: [PATCH] Remove conditional --- src/utils/exportUtils/HtmlExport.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/utils/exportUtils/HtmlExport.tsx b/src/utils/exportUtils/HtmlExport.tsx index 22cf04669b..6ce7ad5c94 100644 --- a/src/utils/exportUtils/HtmlExport.tsx +++ b/src/utils/exportUtils/HtmlExport.tsx @@ -187,13 +187,11 @@ export default class HTMLExporter extends Exporter { if (!haveTileForEvent(event)) continue; content += this._wantsDateSeparator(event, prevEvent) ? this.getDateSeparator(event) : ""; - - if (event.getType() === "m.room.message") { - const shouldBeJoined = !this._wantsDateSeparator(event, prevEvent) + const shouldBeJoined = !this._wantsDateSeparator(event, prevEvent) && shouldFormContinuation(prevEvent, event); - const body = await this.createMessageBody(event, shouldBeJoined); - content += body; - } + const body = await this.createMessageBody(event, shouldBeJoined); + + content += body; prevEvent = event; } return this.wrapHTML(content, room);