/* Metro module 13965; source: modules/cache/CacheActionCreators.tsx; dependencies: [5, 1379, 4885, 694, 2] */ import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */ import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */ import CacheStore from './CacheStore.tsx'; /* Metro dependency 4885 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ChannelStoreModule from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ function _fun105998(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14162:6, offset: 0x022ca29a, size: 176 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/cache/CacheActionCreators.tsx'); exports.writeCaches = function() { return _writeCaches.apply(this, arguments); }; exports.clearCaches = clearCaches; function _writeCaches() { // fn#105999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14162:140, offset: 0x022ca34a, size: 50 bytes, params: 1, frame: 14 return Module00005(_fun106001).apply(this, arguments); async function _fun106001() { // fn#106001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14162:187, offset: 0x022ca390, size: 176 bytes, params: 1, frame: 17 var items2; var Promise; let value = a0; if (true) { var r6 = value !== undefined ? value : false; await undefined; if (false) { return undefined; } value = environment.__proto__.__proto__; var binding = env2_4; if (binding.canWriteCaches(r6)) { binding = env2_3; await binding.loadAllMissingChannels(); if (false) { return undefined; } items2 = []; binding = env2_0; value = binding(env2_1[3]); value.dispatch({type: 'WRITE_CACHES', promisesToWaitOn: items2}); Promise = global.Promise; await Promise.all(items2); value = undefined; return undefined; } } } } function clearCaches() { // fn#106003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14162:541, offset: 0x022ca440, size: 51 bytes, params: 1, frame: 12 (Dispatcher).dispatch({'type': 'CLEAR_CACHES', 'reason': 'Requested by user', 'preventWritingCachesAgainThisSession': true, 'resetSocket': true}); } } global.__d(_fun105998, 13965, [5, 1379, 4885, 694, 2]) /* metro module 13965, dependencies: [5, 1379, 4885, 694, 2] */;