force pasting as plain text in new composer

This commit is contained in:
Bruno Windels 2019-09-05 16:22:42 +02:00
parent 556ccf45dc
commit 0252c7ae37
3 changed files with 32 additions and 5 deletions

View file

@ -232,7 +232,7 @@ function parseHtmlMessage(html, partCreator, isQuotedMessage) {
return parts;
}
function parsePlainTextMessage(body, partCreator, isQuotedMessage) {
export function parsePlainTextMessage(body, partCreator, isQuotedMessage) {
const lines = body.split("\n");
const parts = lines.reduce((parts, line, i) => {
if (isQuotedMessage) {