Krzysztof Krysiński 4 місяців тому
батько
коміт
88aa386ca6

+ 1 - 1
src/PixiEditor.Platform.MSStore/MSAdditionalContentProvider.cs

@@ -73,7 +73,7 @@ public sealed class MSAdditionalContentProvider : IAdditionalContentProvider
             return false;
         }
 
-        return IdentityProvider.User.OwnedProducts.Contains(product);
+        return IdentityProvider.User.OwnedProducts.Any(x => x.Id.Equals(product, StringComparison.OrdinalIgnoreCase));
     }
 
     public bool PlatformHasContent(string product)

+ 7 - 0
src/PixiEditor/ViewModels/SubViewModels/UserViewModel.cs

@@ -362,6 +362,13 @@ internal class UserViewModel : SubViewModel<ViewModelMain>
         else
         {
             LastError = arg != null ? new LocalizedString(error, arg) : new LocalizedString(error);
+            if(User is PixiUser { IsWaitingForActivation: true } pixiUser)
+            {
+                pixiUser.SessionId = null;
+                pixiUser.SessionToken = null;
+                pixiUser.SessionExpirationDate = null;
+                NotifyProperties();
+            }
         }
     }