Fix disabling of Force protection OUT-222
authorThomas
Mon, 16 Jul 2018 17:01:23 +0200
branchOUT-222
changeset 2298bfe1d8b13419
parent 2297 cc0598df6325
child 2299 de13d71de3a4
child 2309 38bfaf04483e
Fix disabling of Force protection
UI/RibbonCustomizations.cs
     1.1 --- a/UI/RibbonCustomizations.cs	Mon Jul 16 12:36:58 2018 +0200
     1.2 +++ b/UI/RibbonCustomizations.cs	Mon Jul 16 17:01:23 2018 +0200
     1.3 @@ -424,7 +424,14 @@
     1.4                                  omi.SetPEPProperty(MailItemExtensions.PEPProperty.ForceProtection, value);
     1.5  
     1.6                                  // Update UI
     1.7 -                                this.GetFormRegionPrivacyStatus(control)?.SetRating(pEpRating.pEpRatingReliable);
     1.8 +                                if (string.IsNullOrEmpty(value as string))
     1.9 +                                {
    1.10 +                                    this.GetFormRegionPrivacyStatus(control)?.RequestRatingAndUIUpdate();
    1.11 +                                }
    1.12 +                                else
    1.13 +                                {
    1.14 +                                    this.GetFormRegionPrivacyStatus(control)?.SetRating(pEpRating.pEpRatingReliable);
    1.15 +                                }
    1.16                                  break;
    1.17                              }
    1.18                          case (MailItemExtensions.PEPProperty.ForceUnencrypted):