Bug 1326271 - No way to accept/reject invite from email. r=philipp a=philipp
authormakemyday@gmx-topmail.de
Fri, 06 Jan 2017 21:10:17 +0100
changeset 27709 b67f6453153bea1f93712085a439207580925f2a
parent 27708 354302165ac64508b55d88063faef669382c0e5a
child 27710 a2376bf830a39f7e07e418512e752594e72726ca
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp, philipp
bugs1326271
Bug 1326271 - No way to accept/reject invite from email. r=philipp a=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.fccReplyFollowParent) {
                         return true;
                     }
                 }