Bug 1565840 - fix access to notification box for 'Ignore (Sub)Thread'. r+a=jorgk
authoralta88@fixall.com
Mon, 15 Jul 2019 11:47:10 +0200
changeset 35215 ef4e72ba20242308037bb8f956b8548afef4c1f5
parent 35214 6d4d817756427f3c4cf7f476d2f91045928e8755
child 35216 172233075ffda8f444352817b7c71eda39ca6f36
push id2460
push usermozilla@jorgk.com
push dateMon, 15 Jul 2019 19:45:40 +0000
treeherdercomm-beta@a1430256e067 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1565840
Bug 1565840 - fix access to notification box for 'Ignore (Sub)Thread'. r+a=jorgk
mail/base/content/mail3PaneWindowCommands.js
--- a/mail/base/content/mail3PaneWindowCommands.js
+++ b/mail/base/content/mail3PaneWindowCommands.js
@@ -695,28 +695,28 @@ var DefaultController = {
       case "cmd_deleteFolder":
         gFolderTreeController.deleteFolder();
         break;
       case "cmd_killThread":
         if (!gFolderDisplay.selectedMessageIsNews) {
           if (!gFolderDisplay.selectedMessageThreadIgnored) {
             ShowIgnoredMessageNotification(gFolderDisplay.selectedMessages, false);
           } else {
-            this.notificationbox.removeTransientNotifications();
+            FolderPaneController.notificationbox.removeTransientNotifications();
           }
         }
         // kill thread kills the thread and then does a next unread
         GoNextMessage(Ci.nsMsgNavigationType.toggleThreadKilled, true);
         break;
       case "cmd_killSubthread":
         if (!gFolderDisplay.selectedMessageIsNews) {
           if (!gFolderDisplay.selectedMessageSubthreadIgnored) {
             ShowIgnoredMessageNotification(gFolderDisplay.selectedMessages, true);
           } else {
-            this.notificationbox.removeTransientNotifications();
+            FolderPaneController.notificationbox.removeTransientNotifications();
           }
         }
         GoNextMessage(Ci.nsMsgNavigationType.toggleSubthreadKilled, true);
         break;
       case "cmd_watchThread":
         gFolderDisplay.doCommand(Ci.nsMsgViewCommandType.toggleThreadWatched);
         break;
       case "button_next":