Small improvement

This commit is contained in:
M66B 2022-01-10 08:51:04 +01:00
parent e78a63314c
commit debe78d215
1 changed files with 2 additions and 2 deletions

View File

@ -2930,7 +2930,7 @@ public class MessageHelper {
StringBuilder w = new StringBuilder();
if (!report.isDelivered()) {
if (report.isDeliveryStatus() && !report.isDelivered()) {
if (report.diagnostic != null) {
String diag = report.diagnostic;
if (diag.length() > MAX_DIAGNOSTIC)
@ -2945,7 +2945,7 @@ public class MessageHelper {
}
}
if (!report.isDisplayed()) {
if (report.isDispositionNotification() && !report.isDisplayed()) {
if (report.disposition != null)
w.append(report.disposition);
}