Skip to content

Commit a5c2ebd

Browse files
author
Stephan Casas
committed
consider empty message bodies
1 parent 2dd3094 commit a5c2ebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conversations.jxa.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function run(argv) {
258258
} message ${chat_platform} ${chat_id} hidden">${
259259
is_attachment
260260
? '<i>Media Attachment</i>'
261-
: message_body.replace(/\\n/g, '<br>')
261+
: (message_body ?? '').replace(/\\n/g, '<br>')
262262
}</div>`,
263263
'',
264264
);

0 commit comments

Comments
 (0)