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 {