decord/source/actions/DefaultRouteActionCreators.tsx

47 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10812
// Function ID: 83867
2026-07-20 16:05:17 +00:00
// Name: isLurkingGuildRoute
2026-07-25 08:10:48 +00:00
// Dependencies: [3760, 653, 3953, 3966, 686, 2]
2026-07-20 16:05:17 +00:00
// Exports: saveLastNonVoiceRoute, saveLastRoute
2026-07-27 11:26:19 +00:00
// Module 10812 (isLurkingGuildRoute)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Routes } from "ME";
const require = arg1;
2026-07-20 16:05:17 +00:00
function isLurkingGuildRoute(Routes) {
2026-07-25 08:10:48 +00:00
let obj = require(3953) /* matchPath */;
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-25 08:10:48 +00:00
const RouteParam = require(3966) /* isPseudoGuildId */.RouteParam;
2026-07-20 16:05:17 +00:00
obj.path = Routes.CHANNEL(RouteParam.guildId());
const matchPathResult = obj.matchPath(Routes, obj);
let guildId;
if (null != matchPathResult) {
const params = matchPathResult.params;
if (null != params) {
guildId = params.guildId;
}
}
let tmp3 = null == guildId;
if (!tmp3) {
tmp3 = !lurking.isLurking(guildId);
}
return !tmp3;
}
2026-07-23 10:11:24 +00:00
const result = require("matchPath").fileFinishedImporting("actions/DefaultRouteActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const saveLastRoute = function saveLastRoute(pathname) {
if (!isLurkingGuildRoute(pathname)) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "SAVE_LAST_ROUTE", path: pathname };
obj.dispatch(obj);
}
};
export const saveLastNonVoiceRoute = function saveLastNonVoiceRoute(Routes) {
if (!isLurkingGuildRoute(Routes)) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "SAVE_LAST_NON_VOICE_ROUTE", path: Routes };
obj.dispatch(obj);
}
};