Fix duplicate notification messages on core & popup windows when using quickreply
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 26 Jun 2009 05:36:50 +0000 (23:36 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 26 Jun 2009 08:05:42 +0000 (02:05 -0600)
imp/js/src/compose-dimp.js

index 5f54db4..17ce0fd 100644 (file)
@@ -226,7 +226,9 @@ var DimpCompose = {
                 this.button_pressed = false;
                 if (DIMP.baseWindow) {
                     DIMP.baseWindow.DimpBase.poll();
-                    DIMP.baseWindow.DimpCore.showNotifications(r.msgs);
+                    if (!DIMP.conf_compose.qreply) {
+                        DIMP.baseWindow.DimpCore.showNotifications(r.msgs);
+                    }
                 }
                 if (DIMP.conf_compose.close_draft) {
                     return this.closeCompose();
@@ -252,7 +254,9 @@ var DimpCompose = {
                         DIMP.baseWindow.DimpBase.updateMsgLog(d.log, { index: d.index, mailbox: d.reply_folder });
                     }
 
-                    DIMP.baseWindow.DimpCore.showNotifications(r.msgs);
+                    if (!DIMP.conf_compose.qreply) {
+                        DIMP.baseWindow.DimpCore.showNotifications(r.msgs);
+                    }
                 }
                 return this.closeCompose();