MessageNotifier: Correct Dir

This commit is contained in:
thororen1234 2025-11-24 17:53:13 -05:00
parent d48ea7e303
commit 670a7abe47
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -54,7 +54,7 @@ export default definePlugin({
Notifications.showNotification({
title: `${username} sent a message`,
body: `Click to jump to ${locationName}`,
onClick() {
onClick() {
NavigationRouter.transitionTo(`/channels/${guild?.id ?? "@me"}/${channel.id}/${message.id}`);
},
});

View file

@ -10,7 +10,7 @@ import { PaintbrushIcon } from "@components/Icons";
import { EquicordDevs } from "@utils/constants";
import { closeModal, openModal } from "@utils/modal";
import definePlugin from "@utils/types";
import { extractAndLoadChunksLazy, findLazy, findStoreLazy } from "@webpack";
import { extractAndLoadChunksLazy, findStoreLazy } from "@webpack";
import { ChannelStore, DraftType, FluxDispatcher, Menu, SelectedChannelStore, UploadHandler } from "@webpack/common";
import RemixModal from "./RemixModal";
@ -19,7 +19,6 @@ import css from "./styles.css?managed";
const requireCreateStickerModal = extractAndLoadChunksLazy(["stickerInspected]:"]);
const requireSettingsMenu = extractAndLoadChunksLazy(['name:"UserSettings"'], /createPromise:.{0,20}(\i\.\i\("?.+?"?\).*?).then\(\i\.bind\(\i,"?(.+?)"?\)\).{0,50}"UserSettings"/);
const CloudUpload = findLazy(m => m.prototype?.trackUploadFinished);
const PendingReplyStore = findStoreLazy("PendingReplyStore");
const validMediaTypes = ["image/png", "image/jpeg", "image/jpg", "image/webp"];