decord/source/modules/rpc/native/SocialRpcNetworkConfigManager.tsx

42 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 16899
// Function ID: 16900
2026-07-29 08:29:29 +00:00
// Name: updateSocialRpcNetworkConfig
2026-08-08 06:10:11 +00:00
// Dependencies: [17, 1975, 1218, 698, 530, 5261, 500, 2]
2026-07-20 16:05:17 +00:00
2026-08-08 06:10:11 +00:00
// Module 16899 (updateSocialRpcNetworkConfig)
2026-07-23 10:11:24 +00:00
import { NativeModules } from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
import _getSystemLocale from "_getSystemLocale";
import fetchFingerprint from "fetchFingerprint";
import "initialize";
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
function updateSocialRpcNetworkConfig() {
2026-07-29 08:29:29 +00:00
let obj = { "X-Super-Properties": null, "X-Fingerprint": null, "X-Installation-ID": null, "X-Discord-Locale": null };
obj[0] = importDefault(698).getSuperPropertiesBase64();
obj[1] = store.getFingerprint();
obj[2] = store.getInstallationForTracking();
obj[3] = locale.locale;
2026-07-20 16:05:17 +00:00
const NativeCacheModule = NativeModules.NativeCacheModule;
2026-07-29 08:29:29 +00:00
if (NativeCacheModule != null) {
2026-07-20 16:05:17 +00:00
const _JSON = JSON;
2026-07-29 08:29:29 +00:00
obj = { apiBaseUrl: null, headers: null };
obj[0] = require(530) /* sendRequest */.getAPIBaseURL();
obj[1] = obj;
2026-07-20 16:05:17 +00:00
const result = NativeCacheModule.setItem("socialRpcNetworkRequest", JSON.stringify(obj));
2026-07-29 08:29:29 +00:00
const obj4 = require(530) /* sendRequest */;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
let prototype = function SocialRpcNetworkConfigManager() {
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.handleUpdate = require(500) /* set */.isAndroid() ? updateSocialRpcNetworkConfig : (() => {
});
applyArgumentsResult.actions = { POST_CONNECTION_OPEN: applyArgumentsResult.handleUpdate };
return applyArgumentsResult;
}.prototype;
class prototype extends tmp2 {
}
prototype = new prototype();
let result = require("fetchFingerprint").fileFinishedImporting("modules/rpc/native/SocialRpcNetworkConfigManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default prototype;