Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,72 @@
/* Metro module 12490; source: modules/gateway/GatewaySocketSingleton.tsx; dependencies: [1226, 3, 12491, 12528, 12531, 9493, 683, 660, 477, 3767, 1458, 694, 2] */
function _fun95044(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12680:6, offset: 0x0212fa50, size: 460 bytes, params: 8, frame: 23
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
let value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('ConnectionStore');
value = importDefault(12491) /* metro dependency 12491: GatewaySocket */;
value = new value();
const value6 = new (importDefault(12528) /* metro dependency 12528: LocalPresenceStateManager */)(value);
const value10 = new (importDefault(12531) /* metro dependency 12531: LocalVoiceStateManager */)(value);
value.handleIdentify = handleIdentify;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isDesktop()) {
(importDefault(3767) /* metro dependency 3767: DiscordNative */).powerMonitor.on('resume', _fun95046);
}
(importDefault(1458) /* metro dependency 1458: NetworkUtils */).addOfflineCallback(_fun95047);
(importDefault(1458) /* metro dependency 1458: NetworkUtils */).addOnlineCallback(_fun95048);
value.on('disconnect', _fun95049);
value.on('close', _fun95050);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/gateway/GatewaySocketSingleton.tsx');
exports.socket = value;
exports.localPresenceState = value6;
exports.localVoiceState = value10;
}
function handleIdentify() { // fn#95045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12680:208, offset: 0x0212fc1c, size: 258 bytes, params: 1, frame: 19
var object3;
const token = AuthenticationStore.getToken();
env0_4.verbose('handleIdentify called', {hasToken: token != null});
if (token == null) {
return null;
}
const state = (importDefault(9493) /* metro dependency 9493: DiscordAppStateNative */).getState();
const installationForTracking = AuthenticationStore.getInstallationForTracking();
object3 = {token: token};
const object4 = {};
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const getSuperProperties = defaultImport2.getSuperProperties;
copyDataProperties(object4, Reflect.apply(getSuperProperties, defaultImport2, []), defaultImport2);
object4['client_app_state'] = state;
object4['is_fast_connect'] = false;
object4['gateway_connect_reasons'] = (importAll(660) /* metro dependency 660: RequestGatewaySocket */).describeConnectionReasons();
copyDataProperties(object4, installationForTracking != null ? {installation_id: installationForTracking} : {},
defaultImport2);
object3.properties = object4;
object3.presence = env0_6.getInitialState();
return object3;
}
function _fun95046() { // fn#95046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12680:645, offset: 0x0212fd1e, size: 35 bytes, params: 1, frame: 13
env0_5.expeditedHeartbeat(5000, 'power monitor resumed');
}
function _fun95047() { // fn#95047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12680:732, offset: 0x0212fd41, size: 38 bytes, params: 1, frame: 15
env0_5.networkStateChange(15000, 'network detected offline.', false);
}
function _fun95048() { // fn#95048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12680:826, offset: 0x0212fd67, size: 35 bytes, params: 1, frame: 13
env0_5.networkStateChange(5000, 'network detected online.');
}
function _fun95049({code, reason}) { // fn#95049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12680:906, offset: 0x0212fd8a, size: 70 bytes, params: 2, frame: 15
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatcher.dispatch({type: 'CONNECTION_CLOSED', code: code, reason: reason});
}
function _fun95050({code, reason}) { // fn#95050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12680:1007, offset: 0x0212fdd0, size: 70 bytes, params: 2, frame: 15
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatcher.dispatch({type: 'CONNECTION_INTERRUPTED', code: code, reason: reason});
}