Bug 1209174 - Fix a conditional statement in nsMsgDBView.cpp. r=jcranmer
authorStefan Sitter <ssitter@gmail.com>
Mon, 28 Sep 2015 20:24:21 +0200
changeset 18478 2c1191c81f3885c2fa605a5e8eebf0be3c40192c
parent 18477 dd8c1bf3c8aa091094a7afcd3e6f4e02118ab56f
child 18479 716926aa9ec7dffba78e8433c5389d8cea50685d
push id11308
push useraleth@instantbird.org
push dateFri, 02 Oct 2015 22:40:38 +0000
treeherdercomm-central@258f0a389e63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjcranmer
bugs1209174
Bug 1209174 - Fix a conditional statement in nsMsgDBView.cpp. r=jcranmer
mailnews/base/src/nsMsgDBView.cpp
--- a/mailnews/base/src/nsMsgDBView.cpp
+++ b/mailnews/base/src/nsMsgDBView.cpp
@@ -3052,17 +3052,17 @@ nsMsgDBView::ApplyCommandToIndices(nsMsg
         folder->MarkMessagesFlagged(messages,
                                     command == nsMsgViewCommandType::flagMessages);
         break;
       default:
         break;
 
     }
     // Provide junk-related batch notifications
-    if ((command == nsMsgViewCommandType::junk) &&
+    if ((command == nsMsgViewCommandType::junk) ||
         (command == nsMsgViewCommandType::unjunk)) {
       nsCOMPtr<nsIMsgFolderNotificationService>
         notifier(do_GetService(NS_MSGNOTIFICATIONSERVICE_CONTRACTID));
       if (notifier)
         notifier->NotifyItemEvent(messages,
                                   NS_LITERAL_CSTRING("JunkStatusChanged"),
                                   (command == nsMsgViewCommandType::junk) ?
                                     kJunkMsgAtom : kNotJunkMsgAtom);