Remove conditional
This commit is contained in:
@@ -187,13 +187,11 @@ export default class HTMLExporter extends Exporter {
|
|||||||
if (!haveTileForEvent(event)) continue;
|
if (!haveTileForEvent(event)) continue;
|
||||||
|
|
||||||
content += this._wantsDateSeparator(event, prevEvent) ? this.getDateSeparator(event) : "";
|
content += this._wantsDateSeparator(event, prevEvent) ? this.getDateSeparator(event) : "";
|
||||||
|
const shouldBeJoined = !this._wantsDateSeparator(event, prevEvent)
|
||||||
if (event.getType() === "m.room.message") {
|
|
||||||
const shouldBeJoined = !this._wantsDateSeparator(event, prevEvent)
|
|
||||||
&& shouldFormContinuation(prevEvent, event);
|
&& shouldFormContinuation(prevEvent, event);
|
||||||
const body = await this.createMessageBody(event, shouldBeJoined);
|
const body = await this.createMessageBody(event, shouldBeJoined);
|
||||||
content += body;
|
|
||||||
}
|
content += body;
|
||||||
prevEvent = event;
|
prevEvent = event;
|
||||||
}
|
}
|
||||||
return this.wrapHTML(content, room);
|
return this.wrapHTML(content, room);
|
||||||
|
|||||||
Reference in New Issue
Block a user