Bug 1547202 - fix empty notification by retrieving .hasMessages() properly. r=mkmelin
authorJorg K <jorgk@jorgk.com>
Sat, 01 Jun 2019 17:40:36 +0200
changeset 35739 28e2abca59382f70c626b826d5304468676cd3cb
parent 35738 8e9201ae828118bbc3bceb4f7413fd67b38fe1ec
child 35740 199071a3bf1634a4b79a0471eaf64ea27d0b1717
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersmkmelin
bugs1547202
Bug 1547202 - fix empty notification by retrieving .hasMessages() properly. r=mkmelin
mailnews/base/content/newmailalert.js
--- a/mailnews/base/content/newmailalert.js
+++ b/mailnews/base/content/newmailalert.js
@@ -105,17 +105,17 @@ function onAlertLoad() {
   if (!gPendingPreviewFetchRequests)
     setTimeout(showAlert, 0); // let the JS thread unwind, to give layout
                               // a chance to recompute the styles and widths for our alert text.
 }
 
 // If the user initiated the alert, show it right away, otherwise start opening the alert with
 // the fade effect.
 function showAlert() {
-  if (!document.getElementById("folderSummaryInfo").hasMessages) {
+  if (!document.getElementById("folderSummaryInfo").hasMessages()) {
     closeAlert(); // no mail, so don't bother showing the alert...
     return;
   }
 
   // resize the alert based on our current content
   resizeAlert(false);
 
   var alertContainer = document.getElementById("alertContainer");