Use local variables
authorThomas
Thu, 11 Oct 2018 09:33:59 +0200
changeset 2402b0701760bfae
parent 2401 86384b7195bb
child 2403 621ad3c9c3d0
Use local variables
CryptableMailItem.cs
     1.1 --- a/CryptableMailItem.cs	Wed Oct 10 15:02:15 2018 +0200
     1.2 +++ b/CryptableMailItem.cs	Thu Oct 11 09:33:59 2018 +0200
     1.3 @@ -1530,7 +1530,7 @@
     1.4                      }
     1.5  
     1.6                      // Define decryption flags
     1.7 -                    decryptionFlags = IsSecurelyStored ? pEpDecryptFlags.pEpDecryptFlagUntrustedServer : pEpDecryptFlags.pEpDecryptFlagsNone;
     1.8 +                    decryptionFlags = isSecurelyStored ? pEpDecryptFlags.pEpDecryptFlagUntrustedServer : pEpDecryptFlags.pEpDecryptFlagsNone;
     1.9  
    1.10                      /* Check if the message is an attached disclaimer message.
    1.11                       * The definition for such a message is that it's a secure attached
    1.12 @@ -1709,16 +1709,16 @@
    1.13                  {
    1.14                      if (Mirror != null)
    1.15                      {
    1.16 -                        PEPCache.AddItemToCache(internalMailItem?.EntryID, new PEPCache.CacheItem { Mirror = Mirror, Rating = result.Rating });
    1.17 +                        PEPCache.AddItemToCache(entryId, new PEPCache.CacheItem { Mirror = Mirror, Rating = result.Rating });
    1.18                      }
    1.19                      else if (Message != null)
    1.20                      {
    1.21 -                        PEPCache.AddItemToCache(internalMailItem?.EntryID, new PEPCache.CacheItem { Mirror = Message, Rating = result.Rating });
    1.22 +                        PEPCache.AddItemToCache(entryId, new PEPCache.CacheItem { Mirror = Message, Rating = result.Rating });
    1.23                      }
    1.24                  }
    1.25                  else
    1.26                  {
    1.27 -                    PEPCache.AddItemToCache(internalMailItem?.EntryID, new PEPCache.CacheItem { Mirror = null, Rating = result.Rating });
    1.28 +                    PEPCache.AddItemToCache(entryId, new PEPCache.CacheItem { Mirror = null, Rating = result.Rating });
    1.29                  }
    1.30  
    1.31                  // Release objects