mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 11:28:08 +01:00
Use binary proto fields in staging
This commit is contained in:
18
ts/util/isProtoBinaryEncodingEnabled.dom.ts
Normal file
18
ts/util/isProtoBinaryEncodingEnabled.dom.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { isTestOrMockEnvironment } from '../environment.std.js';
|
||||
import { isStagingServer } from './isStagingServer.dom.js';
|
||||
|
||||
export function isProtoBinaryEncodingEnabled(): boolean {
|
||||
if (isTestOrMockEnvironment()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (isStagingServer()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO: DESKTOP-8938
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user