decord/source/actions/DefaultRouteActionCreators.tsx

47 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10839
// Function ID: 84120
2026-07-20 16:05:17 +00:00
// Name: isLurkingGuildRoute
2026-07-23 10:11:24 +00:00
// Dependencies: [3759, 653, 3952, 3965, 686, 2]
2026-07-20 16:05:17 +00:00
// Exports: saveLastNonVoiceRoute, saveLastRoute
2026-07-24 07:16:23 +00:00
// Module 10839 (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-23 10:11:24 +00:00
let obj = require(3952) /* matchPath */;
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const RouteParam = require(3965) /* 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);
}
};