Remove leftover logic checking whether we are behind proxy

This commit is contained in:
Scott Nonnenberg 2024-06-28 17:45:32 -07:00 committed by GitHub
parent 4ae563cc95
commit 189a8a0877
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 6 deletions

View file

@ -70,10 +70,6 @@ function _maybeGrabLinkPreview(
if (!messaging) {
return;
}
// If we're behind a user-configured proxy, we don't support link previews
if (window.isBehindProxy()) {
return;
}
if (!message) {
resetLinkPreview(conversationId);

1
ts/window.d.ts vendored
View file

@ -183,7 +183,6 @@ declare global {
// Used for sticker creator localization
localeMessages: { [key: string]: { message: string } };
isBehindProxy: () => boolean;
openArtCreator: (opts: { username: string; password: string }) => void;
enterKeyboardMode: () => void;

View file

@ -58,7 +58,6 @@ window.getServerPublicParams = () => config.serverPublicParams;
window.getGenericServerPublicParams = () => config.genericServerPublicParams;
window.getBackupServerPublicParams = () => config.backupServerPublicParams;
window.getSfuUrl = () => config.sfuUrl;
window.isBehindProxy = () => Boolean(config.proxyUrl);
let title = config.name;
if (getEnvironment() !== Environment.Production) {