Page MenuHomePhorge

D15211.1765084088.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D15211.1765084088.diff

diff --git a/lib/utils/services-utils.js b/lib/utils/services-utils.js
--- a/lib/utils/services-utils.js
+++ b/lib/utils/services-utils.js
@@ -32,13 +32,18 @@
// Keep in sync with native/cpp/CommonCpp/Tools/ServicesUtils.h
function useFullBackupSupportEnabled(): boolean {
const isCurrentUserStaff = useIsCurrentUserStaff();
- if (getConfig().isStaffRelease) {
+
+ const { isStaffRelease, platformDetails } = getConfig();
+ const { platform } = platformDetails;
+ if (platform === 'ios' || platform === 'android' || isStaffRelease) {
return true;
}
return isCurrentUserStaff;
}
function fullBackupSupportEnabled(userID: ?string): boolean {
- if (getConfig().isStaffRelease) {
+ const { isStaffRelease, platformDetails } = getConfig();
+ const { platform } = platformDetails;
+ if (platform === 'ios' || platform === 'android' || isStaffRelease) {
return true;
}
if (!userID) {
diff --git a/native/cpp/CommonCpp/Tools/ServicesUtils.cpp b/native/cpp/CommonCpp/Tools/ServicesUtils.cpp
--- a/native/cpp/CommonCpp/Tools/ServicesUtils.cpp
+++ b/native/cpp/CommonCpp/Tools/ServicesUtils.cpp
@@ -1,12 +1,7 @@
#include "ServicesUtils.h"
-#include "StaffUtils.h"
namespace comm {
bool ServicesUtils::fullBackupSupport() {
-#if DEBUG
return true;
-#else
- return StaffUtils::isStaffRelease();
-#endif
}
} // namespace comm

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 7, 5:08 AM (10 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5841393
Default Alt Text
D15211.1765084088.diff (1 KB)

Event Timeline