Browse Source

When installed from Store, never use update authorization, when reporting usage statistics

Source commit: 8cb686413cf5ee67f2e0ee4e92cd59b5e7e74d8c
Martin Prikryl 6 years ago
parent
commit
8c00649809
1 changed files with 3 additions and 1 deletions
  1. 3 1
      source/windows/Setup.cpp

+ 3 - 1
source/windows/Setup.cpp

@@ -908,7 +908,9 @@ static bool __fastcall DoQueryUpdates(TUpdatesConfiguration & Updates, bool Coll
       URL += L"&localever=" + LocaleVersion;
       URL += L"&localecompl=" + LoadStr(TRANSLATION_COMPLETENESS);
     }
-    if (!Updates.AuthenticationEmail.IsEmpty())
+    // Even if donor email is inherited from normal installation,
+    // do not use it as this all is merely to report usage statistics, not to check for updates, in UWP.
+    if (!Updates.AuthenticationEmail.IsEmpty() && !IsUWP())
     {
       RawByteString AuthenticationEmailBuf = RawByteString(UTF8String(Updates.AuthenticationEmail.LowerCase()));
       URL += L"&authentication=" + Sha256(AuthenticationEmailBuf.c_str(), AuthenticationEmailBuf.Length()).LowerCase();