Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Cleaner test on body
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Oct 26, 2022
1 parent 0a7f44b commit aae93a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit aae93a9

Please sign in to comment.