mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 00:07:56 +01:00
Add feature flag for binary service id use
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user