feat(mail): Add a setting to show the attachments above the mail body

This commit is contained in:
Hivert Quentin
2025-09-19 15:30:45 +02:00
parent a077512e34
commit 5d616600df
9 changed files with 39 additions and 6 deletions

View File

@@ -462,7 +462,12 @@
// Trusted content that can be compiled (Angularly-speaking)
part.compile = true;
if (!Object.hasOwn(part, 'shouldDisplayAttachment') || 1 == part.shouldDisplayAttachment ) {
parts.push(part);
if(Message.$Preferences.defaults.SOGoMailDisplayAttachmentAbove) {
parts.unshift(part);
}
else {
parts.push(part);
}
}
}
else {