Files
discord-decomp/sources/actions/DefaultRouteActionCreators.tsx
T
2026-07-28 01:06:53 +03:00

44 lines
2.9 KiB
TypeScript

/* Metro module 12079; source: actions/DefaultRouteActionCreators.tsx; dependencies: [3785, 661, 3974, 3987, 694, 2] */
import LurkingStore from '../modules/lurker_mode/LurkingStore.tsx'; /* Metro dependency 3785 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as MatchPathCompatModule from '../modules/routing/matchPathCompat.tsx'; /* Metro dependency 3974 */
import * as RouteUtilsModule from '../modules/routing/RouteUtils.tsx'; /* Metro dependency 3987 */
function _fun92815(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12265:6, offset: 0x0209a172, size: 164 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('actions/DefaultRouteActionCreators.tsx');
exports.saveLastRoute = saveLastRoute;
exports.saveLastNonVoiceRoute = saveLastNonVoiceRoute;
function isLurkingGuildRoute(a0) { // fn#92816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12265:123, offset: 0x0209a216, size: 150 bytes, params: 2, frame: 19
const value2 = undefined;
const matchPath = MatchPathCompatModule.matchPath;
const CHANNEL = Routes.CHANNEL;
const RouteParam = (RouteUtilsModule).RouteParam;
let guildId = RouteParam.guildId;
const value3 = Reflect.apply(matchPath, MatchPathCompatModule, [a0, {path: Reflect.apply(CHANNEL, Routes,
[Reflect.apply(guildId, RouteParam, [])])}]);
guildId = value3 == null || value3.params == null ? value2 : value3.params.guildId;
return !(guildId == null || !LurkingStore.isLurking(guildId));
}
function saveLastRoute(a0) { // fn#92817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12265:400, offset: 0x0209a2ac, size: 69 bytes, params: 2, frame: 14
if (!isLurkingGuildRoute(a0)) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAVE_LAST_ROUTE', path: a0});
}
}
function saveLastNonVoiceRoute(a0) { // fn#92818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12265:525, offset: 0x0209a2f1, size: 69 bytes, params: 2, frame: 14
if (!isLurkingGuildRoute(a0)) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAVE_LAST_NON_VOICE_ROUTE',
path: a0});
}
}
}
global.__d(_fun92815, 12079, [3785, 661, 3974, 3987, 694,
2]) /* metro module 12079, dependencies: [3785, 661, 3974, 3987, 694, 2] */;