Page MenuHomePhorge

D15215.1765115428.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D15215.1765115428.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
@@ -2,10 +2,8 @@
import base64 from 'base-64';
-import { getConfig } from './config.js';
import { getMessageForException } from './errors.js';
import type { AuthMetadata } from '../shared/identity-client-context.js';
-import { isStaff, useIsCurrentUserStaff } from '../shared/staff-utils.js';
// If this is true, then the app is able to support multiple keyservers. This
// requires the use of Tunnelbroker and the backup service to persist and sync
@@ -31,25 +29,12 @@
// compaction and logs.
// Keep in sync with native/cpp/CommonCpp/Tools/ServicesUtils.h
function useFullBackupSupportEnabled(): boolean {
- const isCurrentUserStaff = useIsCurrentUserStaff();
-
- const { isStaffRelease, platformDetails } = getConfig();
- const { platform } = platformDetails;
- if (platform === 'ios' || platform === 'android' || isStaffRelease) {
- return true;
- }
- return isCurrentUserStaff;
+ return true;
}
+// Argument userID is unused. Not an issue, this func is going to be removed.
+// eslint-disable-next-line no-unused-vars
function fullBackupSupportEnabled(userID: ?string): boolean {
- const { isStaffRelease, platformDetails } = getConfig();
- const { platform } = platformDetails;
- if (platform === 'ios' || platform === 'android' || isStaffRelease) {
- return true;
- }
- if (!userID) {
- return false;
- }
- return isStaff(userID);
+ return true;
}
function createHTTPAuthorizationHeader(authMetadata: AuthMetadata): string {

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 7, 1:50 PM (14 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5844380
Default Alt Text
D15215.1765115428.diff (1 KB)

Event Timeline