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 36078 ef4e72ba20242308037bb8f956b8548afef4c1f5
parent 36077 6d4d817756427f3c4cf7f476d2f91045928e8755
child 36079 172233075ffda8f444352817b7c71eda39ca6f36
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
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":