view_mail.js: don't list attachments in a quote or forward
[citadel.git] / webcit-ng / static / js / view_mail.js
index 6d6fbcf45f1a8103f7c24b12e5a9546452f39139..4e7635f041b980e5293a83d36ccf5b8ab20be1b3 100644 (file)
@@ -216,8 +216,8 @@ function mail_render_one(msgnum, msg, target_div, include_controls) {
                          "</div>";                                             // end header
                }
 
-               // Display attachments, if any are present
-               if (msg.part) {
+               // Display attachments, if any are present (don't do this if we're quoting the message)
+               if ( (msg.part) && (include_controls) ) {
                        let display_attachments = 0;
                        for (let r=0; r<msg.part.length; ++r) {
                                if (msg.part[r].disp == "attachment") {