Append signature/referenced message only when sending

This commit is contained in:
M66B
2019-07-27 08:39:35 +02:00
parent 78c83b1f35
commit 8fc3813961
3 changed files with 18 additions and 11 deletions

View File

@@ -338,12 +338,15 @@ public class MessageHelper {
StringBuilder body = new StringBuilder();
body.append(Helper.readText(message.getFile(context)));
if (identity != null && !TextUtils.isEmpty(identity.signature))
body.append(identity.signature);
// When sending message
if (identity != null) {
if (!TextUtils.isEmpty(identity.signature))
body.append(identity.signature);
File refFile = message.getRefFile(context);
if (refFile.exists())
body.append(Helper.readText(refFile));
File refFile = message.getRefFile(context);
if (refFile.exists())
body.append(Helper.readText(refFile));
}
String plainContent = HtmlHelper.getText(body.toString());