Cleaner test on body

This commit is contained in:
Florian Duros
2022-10-26 19:21:42 +02:00
parent 0a7f44b226
commit aae93a9af2

View File

@@ -44,7 +44,7 @@ function getHtmlReplyFallback(mxEvent: MatrixEvent): string {
function getTextReplyFallback(mxEvent: MatrixEvent): string {
const body = mxEvent.getContent().body;
if (!body || typeof body !== 'string') {
if (typeof body !== 'string') {
return "";
}
const lines = body.split("\n").map(l => l.trim());