// 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 }); } }