Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,49 @@
|
||||
/* Metro module 4255; source: modules/gateway/PostConnectionCallbackStore.tsx; dependencies: [4256, 4257, 694, 2] */
|
||||
function _fun35370(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:6, offset: 0x01070ffb, size: 229 bytes, params: 8, frame: 20
|
||||
const closure = processCallbacks;
|
||||
const handleCallback = function(a0) {
|
||||
var env0_0 = a0;
|
||||
global.setImmediate(_fun35375);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const newUserStore = importDefault(4256) /* metro dependency 4256: NewUserStore */;
|
||||
const gatewayConnectionStore = importDefault(4257) /* metro dependency 4257: GatewayConnectionStore */;
|
||||
const env0_2 = [];
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).subscribe('CONNECTION_OPEN', closure);
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).subscribe('CONNECTION_RESUMED', closure);
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).subscribe('NUF_COMPLETE', closure);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/gateway/PostConnectionCallbackStore.tsx');
|
||||
exports.addPostConnectionCallback = addPostConnectionCallback;
|
||||
}
|
||||
|
||||
function shouldWaitForBlockingModals() { // fn#35371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:121, offset: 0x010710e0, size: 25 bytes, params: 1, frame: 9
|
||||
return NewUserStore.getType() != null;
|
||||
}
|
||||
|
||||
function processCallbacks() { // fn#35372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:185, offset: 0x010710f9, size: 47 bytes, params: 1, frame: 13
|
||||
if (!shouldWaitForBlockingModals()) {
|
||||
env0_2.forEach(function(a0) {
|
||||
handleCallback(a0);
|
||||
});
|
||||
env0_2 = [];
|
||||
}
|
||||
}
|
||||
|
||||
function handleCallback(a0) { // fn#35374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:285, offset: 0x0107113b, size: 31 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
global.setImmediate(_fun35375);
|
||||
}
|
||||
|
||||
function addPostConnectionCallback(a0) { // fn#35376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:607, offset: 0x0107115a, size: 65 bytes, params: 2, frame: 12
|
||||
if (GatewayConnectionStore.isConnectedOrOverlay()) {
|
||||
if (shouldWaitForBlockingModals()) {
|
||||
env0_2.push(a0);
|
||||
} else {
|
||||
handleCallback(a0);
|
||||
}
|
||||
} else {
|
||||
env0_2.push(a0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user