mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Remove leftover logic checking whether we are behind proxy
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
@@ -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
1
ts/window.d.ts
vendored
@@ -182,7 +182,6 @@ declare global {
|
||||
// Used for sticker creator localization
|
||||
localeMessages: { [key: string]: { message: string } };
|
||||
|
||||
isBehindProxy: () => boolean;
|
||||
openArtCreator: (opts: { username: string; password: string }) => void;
|
||||
|
||||
enterKeyboardMode: () => void;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user