mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
19 lines
415 B
TypeScript
19 lines
415 B
TypeScript
// 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;
|
|
}
|