Add feature flag for binary service id use

This commit is contained in:
Fedor Indutny
2026-02-17 13:06:34 -08:00
committed by GitHub
parent 668c5e76ec
commit 5a9adcca2c
2 changed files with 7 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ const SemverKeys = [
'desktop.retireAccessKeyGroupSend.prod',
'desktop.keyTransparency.beta',
'desktop.keyTransparency.prod',
'desktop.binaryServiceId.beta',
'desktop.binaryServiceId.prod',
] as const;
export type SemverKeyType = ArrayValues<typeof SemverKeys>;

View File

@@ -3,6 +3,7 @@
import { isTestOrMockEnvironment } from '../environment.std.js';
import { isStagingServer } from './isStagingServer.dom.js';
import { isFeaturedEnabledNoRedux } from './isFeatureEnabled.dom.js';
export function isProtoBinaryEncodingEnabled(): boolean {
if (isTestOrMockEnvironment()) {
@@ -13,6 +14,8 @@ export function isProtoBinaryEncodingEnabled(): boolean {
return true;
}
// TODO: DESKTOP-8938
return false;
return isFeaturedEnabledNoRedux({
betaKey: 'desktop.binaryServiceId.beta',
prodKey: 'desktop.binaryServiceId.prod',
});
}