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