Small change to show why saving message to Sent mailbox failed #1397

This commit is contained in:
the-djmaze 2024-01-23 14:34:41 +01:00
parent 29f6b2b743
commit 443a6df070

View file

@ -487,7 +487,11 @@ export class ComposePopupView extends AbstractViewPopup {
if (iError) {
if (Notifications.CantSaveMessage === iError) {
this.sendSuccessButSaveError(true);
this.savedErrorDesc(i18n('COMPOSE/SAVED_ERROR_ON_SEND').trim());
let msg = i18n('COMPOSE/SAVED_ERROR_ON_SEND');
if (data?.ErrorMessageAdditional) {
msg = msg + "\n" + data?.ErrorMessageAdditional;
}
this.savedErrorDesc(msg);
} else {
this.sendError(true);
this.sendErrorDesc(getNotification(iError, data?.ErrorMessage)