Skip to content

Commit

Permalink
consider empty message bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Casas committed Jul 22, 2022
1 parent 2dd3094 commit a5c2ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conversations.jxa.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function run(argv) {
} message ${chat_platform} ${chat_id} hidden">${
is_attachment
? '<i>Media Attachment</i>'
: message_body.replace(/\\n/g, '<br>')
: (message_body ?? '').replace(/\\n/g, '<br>')
}</div>`,
'',
);
Expand Down

0 comments on commit a5c2ebd

Please sign in to comment.