Bug 1326271 - No way to accept/reject invite from email;r=Philipp
authormakemyday@gmx-topmail.de
Fri, 06 Jan 2017 21:10:17 +0100
changeset 20981 8a495be3cf4e5e89f9863ff45b89c8dd2baee263
parent 20980 97a86c21e6c33e5dbee5ce3045d9f4138d2260e2
child 20982 17f9a0ee026116cea6bffcddb6a8d5bc61bb839b
push id12726
push usermakemyday@gmx-topmail.de
push dateSun, 08 Jan 2017 15:53:14 +0000
treeherdercomm-central@8a495be3cf4e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersPhilipp
bugs1326271
Bug 1326271 - No way to accept/reject invite from email;r=Philipp
calendar/lightning/content/imip-bar.js
--- a/calendar/lightning/content/imip-bar.js
+++ b/calendar/lightning/content/imip-bar.js
@@ -200,17 +200,18 @@ var ltnImipBar = {
         // We need this to determine whether this is an outgoing or incoming message because
         // Thunderbird doesn't provide a distinct flag on message level to do so. Relying on
         // folder flags only may lead to false positives.
         let isOutgoing = function(aMsgHdr) {
             if (!aMsgHdr) {
                 return false;
             }
             let author = aMsgHdr.mime2DecodedAuthor;
-            let isSentFolder = aMsgHdr.folder.flags & nsMsgFolderFlags.SentMail;
+            let isSentFolder = aMsgHdr.folder.flags &
+                               Components.interfaces.nsMsgFolderFlags.SentMail;
             if (author && isSentFolder) {
                 let accounts = MailServices.accounts;
                 for (let identity in fixIterator(accounts.allIdentities,
                                                  Components.interfaces.nsIMsgIdentity)) {
                     if (author.includes(identity.email) && !identity.fccReplyFollowsParent) {
                         return true;
                     }
                 }