diff --git a/src/equicordplugins/keywordNotify/index.tsx b/src/equicordplugins/keywordNotify/index.tsx index 74a19f95..bf4cc2a3 100644 --- a/src/equicordplugins/keywordNotify/index.tsx +++ b/src/equicordplugins/keywordNotify/index.tsx @@ -21,7 +21,6 @@ import { Button, ChannelStore, FluxDispatcher, Forms, Select, SelectedChannelSto import { Message, User } from "discord-types/general/index.js"; import type { PropsWithChildren } from "react"; - type IconProps = JSX.IntrinsicElements["svg"]; type KeywordEntry = { regex: string, listIds: Array, listType: ListType, ignoreCase: boolean; }; @@ -30,7 +29,6 @@ let currentUser: User; let keywordLog: Array = []; let interceptor: (e: any) => void; - const recentMentionsPopoutClass = findByPropsLazy("recentMentionsPopout"); const tabClass = findByPropsLazy("inboxTitle", "tab"); const buttonClass = findByPropsLazy("size36"); @@ -172,7 +170,6 @@ function ListTypeSelector({ listType, setListType }: { listType: ListType, setLi ); } - function KeywordEntries() { const update = useForceUpdater(); const [values] = useState(keywordEntries); @@ -359,6 +356,7 @@ export default definePlugin({ }; FluxDispatcher.addInterceptor(interceptor); }, + stop() { const index = FluxDispatcher._interceptors.indexOf(interceptor); if (index > -1) {