This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
// Metro module 10874 (f10875).
import LurkingStore from "../modules/lurker_mode/LurkingStore";
import { Routes } from "../Constants";
import { matchPath } from "../modules/routing/matchPathCompat";
import { RouteParam } from "../modules/routing/RouteUtils";
import Dispatcher from "../Dispatcher";
export function saveLastRoute(a0) {
const r19 = matchPath(a0, {
path: Routes.CHANNEL(RouteParam.guildId())
});
const r20 = r19 == null ? void 0 : r19.params?.guildId;
if (r20 == null || !LurkingStore.isLurking(r20)) {
Dispatcher.dispatch({
type: "SAVE_LAST_ROUTE",
path: a0
});
}
}
export function saveLastNonVoiceRoute(a0) {
const r19 = matchPath(a0, {
path: Routes.CHANNEL(RouteParam.guildId())
});
const r20 = r19 == null ? void 0 : r19.params?.guildId;
if (r20 == null || !LurkingStore.isLurking(r20)) {
Dispatcher.dispatch({
type: "SAVE_LAST_NON_VOICE_ROUTE",
path: a0
});
}
}